website/docs: add version dropdown for subdomains
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c0c222a0b8
commit
36a326cd81
|
@ -13,7 +13,7 @@ This update brings a lot of big features, such as:
|
|||
|
||||
Due to this new OAuth2 Provider, the Application Gateway Provider, now simply called "Proxy Provider" has been revamped as well. The new authentik Proxy integrates more tightly with authentik via the new Outposts system. The new proxy also supports multiple applications per proxy instance, can configure TLS based on authentik Keypairs, and more.
|
||||
|
||||
See [Proxy](../providers/proxy/proxy.md)
|
||||
See [Proxy](../providers/proxy/index.md)
|
||||
|
||||
- Outpost System
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
const sidebar = require("./sidebars.js");
|
||||
|
||||
const releases = sidebar.docs
|
||||
.filter((doc) => doc.link?.slug === "releases")[0]
|
||||
.items.filter((release) => typeof release === "string");
|
||||
const latestVersion = releases[0].replace("releases/v", "");
|
||||
|
||||
module.exports = {
|
||||
title: "authentik",
|
||||
tagline: "Making authentication simple.",
|
||||
|
@ -39,6 +46,20 @@ module.exports = {
|
|||
label: "API",
|
||||
position: "left",
|
||||
},
|
||||
{
|
||||
type: "dropdown",
|
||||
label: `Version ${latestVersion}`,
|
||||
position: "right",
|
||||
items: releases.map((release) => {
|
||||
const subdomain = release
|
||||
.replace("releases/v", "")
|
||||
.replace(".", "-");
|
||||
return {
|
||||
label: release.replace("releases/", ""),
|
||||
href: `https://version-${subdomain}.goauthentik.io`,
|
||||
};
|
||||
}),
|
||||
},
|
||||
{
|
||||
href: "https://github.com/goauthentik/authentik",
|
||||
label: "GitHub",
|
||||
|
|
Reference in New Issue