From 063877a615c02617d473290e99f4a35606563fcb Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 15 Jan 2023 17:23:33 +0100 Subject: [PATCH] website: fix version dropdown and generated subdomains Signed-off-by: Jens Langhammer #4437 --- website/docusaurus.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index d21cf38ea..133a32214 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -11,7 +11,7 @@ module.exports = { baseUrl: "/", onBrokenLinks: "throw", favicon: "img/icon.png", - organizationName: "BeryJu", + organizationName: "Authentik Security Inc.", projectName: "authentik", themeConfig: { navbar: { @@ -52,10 +52,11 @@ module.exports = { position: "right", items: releases.map((release) => { const subdomain = release - .replace("releases/v", "") + .replace(/releases\/\d+\/v/, "") .replace(".", "-"); const label = - "Version: " + release.replace("releases/", ""); + "Version: " + + release.replace(/releases\/\d+\/v/, ""); return { label: label, href: `https://version-${subdomain}.goauthentik.io`,