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.", url: "https://goauthentik.io", baseUrl: "/", onBrokenLinks: "throw", favicon: "img/icon.png", organizationName: "BeryJu", projectName: "authentik", themeConfig: { navbar: { title: "authentik", logo: { alt: "authentik logo", src: "img/icon_left_brand.svg", }, items: [ { to: "docs/", activeBasePath: "docs", label: "Documentation", position: "left", }, { to: "integrations/", activeBasePath: "integrations", label: "Integrations", position: "left", }, { to: "developer-docs/", activeBasePath: "developer-docs", label: "Developer", position: "left", }, { to: "api/", activeBasePath: "api", label: "API", position: "left", }, { type: "dropdown", label: `Version: latest`, position: "right", items: releases.map((release) => { const subdomain = release .replace("releases/v", "") .replace(".", "-"); const label = "Version: " + release.replace("releases/", ""); return { label: label, href: `https://version-${subdomain}.goauthentik.io`, }; }), }, { href: "https://github.com/goauthentik/authentik", label: "GitHub", position: "right", }, { href: "https://goauthentik.io/discord", label: "Discord", position: "right", }, ], }, footer: { links: [ { title: "Docs", items: [ { label: "Documentation", to: "docs/", }, { label: "Developer Documentation", to: "developer-docs/", }, { label: "Installations", to: "docs/installation/index", }, ], }, { title: "More", items: [ { label: "GitHub", href: "https://github.com/goauthentik/authentik", }, { label: "Discord", href: "https://goauthentik.io/discord", }, { html: ` `, }, ], }, ], copyright: `Copyright © ${new Date().getFullYear()} BeryJu.org. 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"), }, }, ], ], plugins: [ [ "@docusaurus/plugin-content-docs", { id: "docsIntegrations", path: "integrations", routeBasePath: "integrations", sidebarPath: require.resolve("./sidebarsIntegrations.js"), editUrl: "https://github.com/goauthentik/authentik/edit/main/website/", }, ], [ "@docusaurus/plugin-content-docs", { id: "docsDevelopers", path: "developer-docs", routeBasePath: "developer-docs", sidebarPath: require.resolve("./sidebarsDev.js"), editUrl: "https://github.com/goauthentik/authentik/edit/main/website/", }, ], ], ssrTemplate: ` >
<%~ it.headTags %> <% it.metaAttributes.forEach((metaAttribute) => { %> <%~ metaAttribute %> <% }); %> <% it.stylesheets.forEach((stylesheet) => { %> <% }); %> <% it.scripts.forEach((script) => { %> <% }); %> itemscope="" itemtype="http://schema.org/Organization"> <%~ it.preBodyTags %>