Skip to content

Commit

Permalink
Feat: Better Client Redirects (#35)
Browse files Browse the repository at this point in the history
* feat: added client redirects

* feat: added client redirects
  • Loading branch information
khomenok authored Oct 18, 2024
1 parent 5119371 commit c2946af
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 20 deletions.
26 changes: 22 additions & 4 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const config: Config = {
label: 'Timeline',
position: 'right'
},

// {to: '/blog', label: 'Blog', position: 'left'},
// {
// label: 'Website',
Expand All @@ -135,7 +135,7 @@ const config: Config = {
className: 'header-github-link',
'aria-label': 'GitHub repository'
},

],
},
footer: {
Expand Down Expand Up @@ -233,7 +233,7 @@ const config: Config = {
srcDark: 'img/logos/UptimeIndustries-logo-green.svg',
height: 100
},

},
prism: {
theme: prismThemes.github,
Expand Down Expand Up @@ -276,8 +276,26 @@ const config: Config = {
sidebar: {
autoCollapseCategories: false
}
}
},
} satisfies Preset.ThemeConfig,

plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/datasheets/',
from: ['/data-sheets/'],
},
{
to: '/blade/getting-started/assembly/',
from: ['/getting-started/']
},
],
},
],
]
};

export default config;
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"dependencies": {
"@docusaurus/core": "^3.5.2",
"@docusaurus/plugin-client-redirects": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@mdx-js/react": "^3.0.1",
"clsx": "^2.1.1",
Expand Down
8 changes: 0 additions & 8 deletions docs/src/pages/data-sheets.tsx

This file was deleted.

8 changes: 0 additions & 8 deletions docs/src/pages/getting-started.tsx

This file was deleted.

15 changes: 15 additions & 0 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,21 @@
react-helmet-async "*"
react-loadable "npm:@docusaurus/react-loadable@6.0.0"

"@docusaurus/plugin-client-redirects@^3.5.2":
version "3.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-3.5.2.tgz#ace1549e30cfca42dbc625f92920ea66a3cd7b1d"
integrity sha512-GMU0ZNoVG1DEsZlBbwLPdh0iwibrVZiRfmdppvX17SnByCVP74mb/Nne7Ss7ALgxQLtM4IHbXi8ij90VVjAJ+Q==
dependencies:
"@docusaurus/core" "3.5.2"
"@docusaurus/logger" "3.5.2"
"@docusaurus/utils" "3.5.2"
"@docusaurus/utils-common" "3.5.2"
"@docusaurus/utils-validation" "3.5.2"
eta "^2.2.0"
fs-extra "^11.1.1"
lodash "^4.17.21"
tslib "^2.6.0"

"@docusaurus/plugin-content-blog@3.5.2":
version "3.5.2"
resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-3.5.2.tgz#649c07c34da7603645f152bcebdf75285baed16b"
Expand Down

0 comments on commit c2946af

Please sign in to comment.