website: fix version dropdown and generated subdomains
Signed-off-by: Jens Langhammer <jens@goauthentik.io> #4437
This commit is contained in:
parent
a73d50d379
commit
063877a615
|
@ -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`,
|
||||
|
|
Reference in New Issue