Skip to content

Commit

Permalink
docs: add client redirection if file is moved
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Nov 26, 2024
1 parent 17dd95c commit b8bde84
Show file tree
Hide file tree
Showing 3 changed files with 1,907 additions and 140 deletions.
11 changes: 11 additions & 0 deletions packages/documentation/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ const docsContextValue: string | undefined = process.env.DOCS_CONTEXT_VALUE;

const plugins: PluginConfig[] = [
'docusaurus-plugin-sass',
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/docs/controls/forms/forms-validation',
from: '/docs/controls/validation',
},
]
}
]
]

if (useFastStart) {
Expand Down
11 changes: 6 additions & 5 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"@docusaurus/core": "3.3.0",
"@docusaurus/plugin-client-redirects": "3.3.0",
"@docusaurus/preset-classic": "3.3.0",
"@docusaurus/theme-live-codeblock": "3.3.0",
"@mdx-js/react": "^3.0.0",
Expand All @@ -30,29 +31,29 @@
"@siemens/ix-icons": "^2.0.0",
"@siemens/ix-react": "workspace:*",
"@stackblitz/sdk": "^1.8.1",
"angular-test-app": "workspace:*",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^3.3.0",
"docusaurus-plugin-sass": "^0.2.2",
"execa": "^5.1.1",
"html-test-app": "workspace:*",
"angular-test-app": "workspace:*",
"react-test-app": "workspace:*",
"vue-test-app": "workspace:*",
"ionic-test-app": "workspace:*",
"prism-react-renderer": "^2.1.0",
"raw-loader": "^4.0.2",
"react": "^18.0.0",
"react-anime": "^4.1.1",
"react-dom": "^18.0.0",
"sass": "^1.54.8"
"react-test-app": "workspace:*",
"sass": "^1.54.8",
"vue-test-app": "workspace:*"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.3.0",
"@docusaurus/tsconfig": "3.3.0",
"@docusaurus/types": "3.3.0",
"@types/fs-extra": "^9.0.13",
"@types/rimraf": "^3.0.2",
"@types/node": "^20.16.0",
"@types/rimraf": "^3.0.2",
"@types/tar": "^6.1.7",
"axios": "^1.5.1",
"figma-plugin": "workspace:*",
Expand Down
Loading

0 comments on commit b8bde84

Please sign in to comment.