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 7, 2023
1 parent eff881d commit 1b1eecc
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 @@ -329,6 +329,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 1b1eecc

Please sign in to comment.