Skip to content

Commit

Permalink
feat: add client-side redirect for community
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBezold committed Dec 14, 2023
1 parent d4f657a commit 6e8dd59
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ npm/npmjs/-/cssnano-preset-default/5.2.13, MIT, approved, clearlydefined
npm/npmjs/-/cssnano-utils/3.1.0, MIT, approved, clearlydefined
npm/npmjs/-/cssnano/5.1.14, MIT, approved, clearlydefined
npm/npmjs/-/csso/4.2.0, MIT, approved, clearlydefined
npm/npmjs/-/csstype/3.1.1, MIT, approved, clearlydefined
npm/npmjs/-/csstype/3.1.1, MIT, approved, #11847
npm/npmjs/-/cytoscape-cose-bilkent/4.1.0, MIT, approved, clearlydefined
npm/npmjs/-/cytoscape-fcose/2.2.0, MIT, approved, clearlydefined
npm/npmjs/-/cytoscape/3.26.0, MIT, approved, clearlydefined
Expand Down Expand Up @@ -1165,6 +1165,7 @@ npm/npmjs/@docusaurus/cssnano-preset/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/logger/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/mdx-loader/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/module-type-aliases/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/plugin-client-redirects/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/plugin-content-blog/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/plugin-content-docs/2.2.0, MIT, approved, clearlydefined
npm/npmjs/@docusaurus/plugin-content-pages/2.2.0, MIT, approved, clearlydefined
Expand Down
13 changes: 13 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ const config = {
sidebarPath: './sidebarsCommunity.js',
},
],
[
// HINT: won't redirect in local dev mode (npm start). See: https://docusaurus.io/docs/2.x/api/plugins/@docusaurus/plugin-client-redirects
// to test, use npm run build && npm run serve
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/community/intro',
from: '/community',
},
],
},
],
// ------------DOCUSAURUS PLUGIN REMOTE CONTENT----------------
[
"docusaurus-plugin-remote-content",
Expand Down
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2.0",
"@docusaurus/plugin-client-redirects": "^2.2.0",
"@docusaurus/preset-classic": "2.2.0",
"@docusaurus/theme-mermaid": "2.2.0",
"@emotion/react": "^11.10.5",
Expand Down

0 comments on commit 6e8dd59

Please sign in to comment.