Skip to content

Commit

Permalink
Add redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
pswai committed Mar 19, 2024
1 parent b712585 commit 9388999
Show file tree
Hide file tree
Showing 3 changed files with 3,762 additions and 2,876 deletions.
19 changes: 18 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,23 @@ const config = {
editLocalizedFiles: true,
}),
],
[
'client-redirects',
/** @type {import('@docusaurus/plugin-client-redirects').Options} */
({
fromExtensions: ['html', 'mdx'],
redirects: [
{
from: ['/docs'],
to: '/docs/introduction/what-is-byconity',
},
{
from: ['/community'],
to: '/community/become-maintainer',
},
],
}),
],
],

presets: [
Expand Down Expand Up @@ -95,7 +112,7 @@ const config = {
items: [
{
type: 'doc',
docId: 'introduction/main-principle-concepts',
docId: 'introduction/what-is-byconity',
position: 'left',
label: 'Docs',
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"@docusaurus/core": "2.3.1",
"@docusaurus/plugin-client-redirects": "2.3.1",
"@docusaurus/preset-classic": "2.3.1",
"@docusaurus/theme-common": "^2.3.1",
"@mdx-js/react": "^1.6.22",
Expand Down
Loading

0 comments on commit 9388999

Please sign in to comment.