From 50975a2e4e57d125731fb14ca58783b5ce552b16 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Thu, 7 Sep 2023 10:42:54 +0200 Subject: [PATCH] Add draft for version redirects --- docusaurus.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index ce8e84d0434..4e73944ad22 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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);