From 1b1eeccffd1c274cda21462ff0cb30d1f83eda48 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 38fa2cea9fb..f515be476ee 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -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);