Skip to content

Commit

Permalink
Merge pull request #314 from invariant-labs/docs-redirect
Browse files Browse the repository at this point in the history
Added redirect plugin
  • Loading branch information
Sniezka1927 authored Dec 4, 2023
2 parents 1dca287 + 6ce7e68 commit 958968f
Show file tree
Hide file tree
Showing 4 changed files with 7,523 additions and 20,414 deletions.
31 changes: 30 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,34 @@ module.exports = {
integrity: 'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
crossorigin: 'anonymous'
}
]
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
fromExtensions: ['html'],
toExtensions: ['html'],
redirects: [
{
from: '/docs/aleph_zero/',
to: '/docs/aleph_zero/project_structure',
},
{
from: '/docs/solana/',
to: '/docs/solana/introduction',
},
],
createRedirects(existingPath) {
if(existingPath === "/docs/aleph_zero/" ) {
return "/docs/aleph_zero/project_structure";
}
if (existingPath === "/docs/solana/") {
return '/docs/solana/introduction';
}
// Path does not require a redirect.
return undefined;
},
},
],
],
}
Loading

1 comment on commit 958968f

@vercel
Copy link

@vercel vercel bot commented on 958968f Dec 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.