Skip to content

Commit

Permalink
Add draft for version redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Electron committed Sep 29, 2023
1 parent df38c35 commit 50975a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,16 @@ module.exports = async () => {
},
];

// Version redirects are only used to asign path with the actual version it to the "current" version
const versionRedirects = [
{
from: '/identity.rs/0.6',
to: '/identity.rs',
},
];

redirects.push(...versionRedirects);

for (const redirect of redirects) {
if (existingPath.includes(redirect.to)) {
return existingPath.replace(redirect.to, redirect.from);
Expand Down

0 comments on commit 50975a2

Please sign in to comment.