Skip to content

Commit

Permalink
Implement Client Redirect Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ImmaZoni committed Nov 16, 2023
1 parent ee8d656 commit a997c90
Show file tree
Hide file tree
Showing 3 changed files with 370 additions and 3,014 deletions.
44 changes: 42 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,47 @@ const config = {
trackingID: 'G-25NWNJB9MR',
anonymizeIP: false,
}
]
],
// Legacy Link Redirects
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/docs/category/pulsar-reccomended',
from: '/docs/category/pulsar',
},
{
to: '/docs/participate/contribute/',
from: '/docs/community/contribute/',
},
{
to: '/docs/category/develop-on-nova-evm-',
from: '/docs/category/developer-documentation/',
},
{
to: "/docs/category/operators-and-nominators",
from: "/docs/operators_and_staking/intro"
},
{
to: "/docs/category/advanced-cli",
from: ["/docs/protocol/cli/", "/docs/protocol/substrate-cli/"]
},
{
to: "/docs/farming-&-staking/timekeeping",
from: "/docs/protocol/timekeeping"
},
{
to: "/docs/category/farming",
from: ["/docs/category/get-started-with-farming", "/protocol/farm/farming"]
},
{
to: "/docs/category/pulsar-reccomended",
from: "/docs/protocol/pulsar/"
}
],
},
],
],

presets: [
Expand Down Expand Up @@ -115,7 +155,7 @@ const config = {
position: 'left',
items: [
{
label: 'Farming',
label: 'farming',
href: '/docs/category/farming'
},
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dependencies": {
"@crowdin/cli": "3",
"@docusaurus/core": "^2.4.3",
"@docusaurus/plugin-client-redirects": "^3.0.0",
"@docusaurus/plugin-client-redirects": "^2.4.3",
"@docusaurus/plugin-google-gtag": "^2.4.3",
"@docusaurus/plugin-sitemap": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
Expand Down
Loading

0 comments on commit a997c90

Please sign in to comment.