const sidebar = require("./sidebars.js");
const releases = sidebar.docs
.filter((doc) => doc.link?.slug === "releases")[0]
.items.filter((release) => typeof release === "string");
module.exports = {
title: "authentik",
tagline: "Making authentication simple.",
url: "https://goauthentik.io",
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/icon.png",
organizationName: "Authentik Security Inc.",
projectName: "authentik",
themeConfig: {
navbar: {
logo: {
alt: "authentik logo",
src: "img/icon_left_brand.svg",
},
items: [
{ to: "blog", label: "Blog", position: "left" },
{
to: "docs/",
activeBasePath: "docs",
label: "Documentation",
position: "left",
to: "integrations/",
activeBasePath: "integrations",
label: "Integrations",
to: "developer-docs/",
activeBasePath: "developer-docs",
label: "Developer",
to: "jobs/",
activeBasePath: "jobs",
label: "Jobs",
type: "dropdown",
label: `Version: latest`,
position: "right",
items: releases.map((release) => {
const subdomain = release
.replace(/releases\/\d+\/v/, "")
.replace(".", "-");
const label =
"Version: " +
release.replace(/releases\/\d+\/v/, "");
return {
label: label,
href: `https://version-${subdomain}.goauthentik.io`,
};
}),
href: "https://github.com/goauthentik/authentik",
className: "header-github-link",
"aria-label": "GitHub repository",
href: "https://goauthentik.io/discord",
className: "header-discord-link",
],
footer: {
links: [
title: "Documentation",
label: "Developer Documentation",
label: "Installations",
to: "docs/installation/",
title: "More",
label: "GitHub",
label: "Discord",
copyright: `Copyright © ${new Date().getFullYear()} authentik Security Inc. Built with Docusaurus.`,
colorMode: {
respectPrefersColorScheme: true,
algolia: {
appId: "36ROD0O0FV",
apiKey: "727db511300ca9aec5425645bbbddfb5",
indexName: "goauthentik",
presets: [
[
"@docusaurus/preset-classic",
docs: {
id: "docs",
sidebarPath: require.resolve("./sidebars.js"),
editUrl:
"https://github.com/goauthentik/authentik/edit/main/website/",
theme: {
customCss: require.resolve("./src/css/custom.css"),
gtag: {
trackingID: "G-9MVR9WZFZH",
anonymizeIP: true,
plugins: [
"@docusaurus/plugin-content-docs",
id: "docsIntegrations",
path: "integrations",
routeBasePath: "integrations",
sidebarPath: require.resolve("./sidebarsIntegrations.js"),
id: "docsDevelopers",
path: "developer-docs",
routeBasePath: "developer-docs",
sidebarPath: require.resolve("./sidebarsDev.js"),
scripts: [
src: "https://goauthentik.io/js/script.js",
async: true,
"data-domain": "goauthentik.io",
src: "https://boards.greenhouse.io/embed/job_board/js?for=authentiksecurity",