Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/.vitepress/dist
target-folder: docs
# this folder needs to be kept in sync with the base property in /docs/.vitepress/config.mts
target-folder: docs/v5
3 changes: 2 additions & 1 deletion docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export default withMermaid({
head: [['link', { rel: 'icon', href: 'favicon.ico' }]],
title: 'Web Components',
description: 'Component Library following the SIX Style Guide',
base: '/six-webcomponents/',
// keep this in sync with the target folder in the "Deploy Documentation" section of /.github/workflows/release.yml
base: '/six-webcomponents/v5/',
lastUpdated: true,

// https://vitepress.dev/reference/default-theme-config
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ hero:
link: /guide/readme
- theme: alt
text: Angular Example
link: https://six-group.github.io/six-webcomponents/demo/angular
link: https://six-group.github.io/six-webcomponents/v5/demo/angular
- theme: alt
text: Vue Example
link: https://six-group.github.io/six-webcomponents/demo/vue
link: https://six-group.github.io/six-webcomponents/v5/demo/vue
- theme: alt
text: React Example (experimental)
link: https://six-group.github.io/six-webcomponents/demo/react
link: https://six-group.github.io/six-webcomponents/v5/demo/react
features:
- title: Agnostic
details:
Expand Down
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@six-group/ui-library": "*"
},
"devDependencies": {
"cpy-cli": "^5.0.0",
"shx": "^0.4.0",
"mermaid": "^11.2.1",
"node-html-parser": "^6.1.5",
"rimraf": "^5.0.1",
Expand All @@ -20,9 +20,9 @@
"build": "run-s clean generate:components build:doc copy:angular copy:vue copy:react",
"preview": "vitepress preview",
"build:doc": "vitepress build",
"copy:angular": "cpy '../examples/angular/dist/demo-app-angular/**/*' ./.vitepress/dist/demo/angular/",
"copy:vue": "cpy '../examples/vue/dist/**/*' ./.vitepress/dist/demo/vue/",
"copy:react": "cpy '../examples/react/dist/**/*' ./.vitepress/dist/demo/react/",
"copy:angular": "shx mkdir -p ./.vitepress/dist/demo/angular && shx cp -r ../examples/angular/dist/angular/browser/* ./.vitepress/dist/demo/angular/",
"copy:vue": " shx mkdir -p ./.vitepress/dist/demo/vue && shx cp -r ../examples/vue/dist/* ./.vitepress/dist/demo/vue/",
"copy:react": " shx mkdir -p ./.vitepress/dist/demo/react && shx cp -r ../examples/react/dist/* ./.vitepress/dist/demo/react/",
"generate:components": "node scripts/components.mjs",
"clean": "rimraf examples components .vitepress/dist"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --base-href /six-webcomponents/demo/angular/"
"build": "ng build --base-href /six-webcomponents/v5/demo/angular/"
},
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/angular/src/app/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!-- logo -->
<six-header-item>
<six-icon-button href="https://six-group.github.io/six-webcomponents/demo/angular/">
<six-icon-button href="https://six-group.github.io/six-webcomponents/v5/demo/angular/">
<six-logo></six-logo>
</six-icon-button>
</six-header-item>
Expand Down
2 changes: 1 addition & 1 deletion examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "tsc -b && vite build --base=/six-webcomponents/v5/demo/react/",
"preview": "vite preview"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/react/src/components/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function Header({ leftSidebar, toggleRightSidebar }: HeaderProps) {
</SixHeaderItem>

<SixHeaderItem>
<SixIconButton href={'https://six-group.github.io/six-webcomponents/demo/react/'}>
<SixIconButton href={'https://six-group.github.io/six-webcomponents/demo/v5/react/'}>
<SixLogo />
</SixIconButton>
</SixHeaderItem>
Expand Down
6 changes: 3 additions & 3 deletions examples/react/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { Home } from 'src/routes/home/home';
import { Layout } from 'src/routes/layout/layout';
import { BrowserRouter, Route, Routes } from 'react-router';
import { HashRouter, Route, Routes } from 'react-router';
import { Alert } from '@routes/alert/alert';
import { TabGroup } from '@routes/tabGroup/tabGroup';
import { Form } from '@routes/form/form';
Expand All @@ -13,7 +13,7 @@ import '@six-group/ui-library/dist/ui-library/ui-library.css';

createRoot(document.getElementById('root')!).render(
<StrictMode>
<BrowserRouter>
<HashRouter>
<Routes>
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
Expand All @@ -25,6 +25,6 @@ createRoot(document.getElementById('root')!).render(
<Route path="*" element={<div>Page Not Found</div>} />
</Route>
</Routes>
</BrowserRouter>
</HashRouter>
</StrictMode>
);
2 changes: 1 addition & 1 deletion examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
"preview": "vite preview",
"build-only": "cross-env BASE_URL=/six-webcomponents/demo/vue/ vite build",
"build-only": "cross-env BASE_URL=/six-webcomponents/v5/demo/vue/ vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
Expand Down
2 changes: 1 addition & 1 deletion examples/vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const searchActive = ref(false);

<!-- logo -->
<six-header-item>
<six-icon-button href="https://six-group.github.io/six-webcomponents/demo/vue/">
<six-icon-button href="https://six-group.github.io/six-webcomponents/v5/demo/vue/">
<six-logo></six-logo>
</six-icon-button>
</six-header-item>
Expand Down
Loading