2022-06-15 19:43:44 +00:00
|
|
|
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", "");
|
|
|
|
|
2020-11-15 21:42:02 +00:00
|
|
|
module.exports = {
|
2020-12-05 21:08:42 +00:00
|
|
|
title: "authentik",
|
2021-03-18 19:51:21 +00:00
|
|
|
tagline: "Making authentication simple.",
|
2020-12-05 21:08:42 +00:00
|
|
|
url: "https://goauthentik.io",
|
2020-11-15 21:42:02 +00:00
|
|
|
baseUrl: "/",
|
|
|
|
onBrokenLinks: "throw",
|
2020-12-05 21:08:42 +00:00
|
|
|
favicon: "img/icon.png",
|
2020-11-15 21:42:02 +00:00
|
|
|
organizationName: "BeryJu",
|
2020-12-05 21:08:42 +00:00
|
|
|
projectName: "authentik",
|
2020-11-15 21:42:02 +00:00
|
|
|
themeConfig: {
|
|
|
|
navbar: {
|
2020-12-05 21:08:42 +00:00
|
|
|
title: "authentik",
|
2020-11-15 21:42:02 +00:00
|
|
|
logo: {
|
2020-12-05 21:08:42 +00:00
|
|
|
alt: "authentik logo",
|
|
|
|
src: "img/icon_left_brand.svg",
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
to: "docs/",
|
|
|
|
activeBasePath: "docs",
|
2021-11-30 10:12:34 +00:00
|
|
|
label: "Documentation",
|
2020-11-15 21:42:02 +00:00
|
|
|
position: "left",
|
|
|
|
},
|
2021-11-22 10:10:26 +00:00
|
|
|
{
|
|
|
|
to: "integrations/",
|
|
|
|
activeBasePath: "integrations",
|
|
|
|
label: "Integrations",
|
|
|
|
position: "left",
|
|
|
|
},
|
2021-04-18 15:25:03 +00:00
|
|
|
{
|
|
|
|
to: "developer-docs/",
|
|
|
|
activeBasePath: "developer-docs",
|
2021-11-30 10:12:34 +00:00
|
|
|
label: "Developer",
|
2021-04-18 15:25:03 +00:00
|
|
|
position: "left",
|
|
|
|
},
|
2021-04-18 15:15:19 +00:00
|
|
|
{
|
|
|
|
to: "api/",
|
|
|
|
activeBasePath: "api",
|
|
|
|
label: "API",
|
|
|
|
position: "left",
|
|
|
|
},
|
2022-06-15 19:43:44 +00:00
|
|
|
{
|
|
|
|
type: "dropdown",
|
2022-06-21 20:26:17 +00:00
|
|
|
label: `Version: latest`,
|
2022-06-15 19:43:44 +00:00
|
|
|
position: "right",
|
|
|
|
items: releases.map((release) => {
|
|
|
|
const subdomain = release
|
|
|
|
.replace("releases/v", "")
|
|
|
|
.replace(".", "-");
|
2022-06-21 20:26:17 +00:00
|
|
|
const label =
|
|
|
|
"Version: " + release.replace("releases/", "");
|
2022-06-15 19:43:44 +00:00
|
|
|
return {
|
2022-06-21 20:26:17 +00:00
|
|
|
label: label,
|
2022-06-15 19:43:44 +00:00
|
|
|
href: `https://version-${subdomain}.goauthentik.io`,
|
|
|
|
};
|
|
|
|
}),
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
{
|
2021-05-13 18:15:29 +00:00
|
|
|
href: "https://github.com/goauthentik/authentik",
|
2020-11-15 21:42:02 +00:00
|
|
|
label: "GitHub",
|
|
|
|
position: "right",
|
|
|
|
},
|
2021-04-08 19:03:48 +00:00
|
|
|
{
|
2021-10-21 08:40:43 +00:00
|
|
|
href: "https://goauthentik.io/discord",
|
2021-04-08 19:03:48 +00:00
|
|
|
label: "Discord",
|
|
|
|
position: "right",
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: "Docs",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: "Documentation",
|
|
|
|
to: "docs/",
|
|
|
|
},
|
2021-04-18 15:25:03 +00:00
|
|
|
{
|
|
|
|
label: "Developer Documentation",
|
|
|
|
to: "developer-docs/",
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
{
|
|
|
|
label: "Installations",
|
|
|
|
to: "docs/installation/index",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "More",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: "GitHub",
|
2021-05-13 18:15:29 +00:00
|
|
|
href: "https://github.com/goauthentik/authentik",
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
2021-04-08 19:03:48 +00:00
|
|
|
{
|
|
|
|
label: "Discord",
|
2021-10-21 08:40:43 +00:00
|
|
|
href: "https://goauthentik.io/discord",
|
2021-04-08 19:03:48 +00:00
|
|
|
},
|
2021-11-24 10:30:02 +00:00
|
|
|
{
|
|
|
|
html: `<a href="https://www.netlify.com" target="_blank" rel="noreferrer noopener" aria-label="Deploys by Netlify">
|
|
|
|
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" alt="Deploys by Netlify" />
|
|
|
|
</a>`,
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} BeryJu.org. Built with Docusaurus.`,
|
|
|
|
},
|
|
|
|
colorMode: {
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
},
|
2021-04-12 16:25:52 +00:00
|
|
|
algolia: {
|
2022-02-28 08:52:21 +00:00
|
|
|
appId: "36ROD0O0FV",
|
|
|
|
apiKey: "727db511300ca9aec5425645bbbddfb5",
|
2021-11-22 10:10:26 +00:00
|
|
|
indexName: "goauthentik",
|
2021-04-12 16:25:52 +00:00
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
"@docusaurus/preset-classic",
|
|
|
|
{
|
|
|
|
docs: {
|
2021-04-18 15:25:03 +00:00
|
|
|
id: "docs",
|
2020-11-15 21:42:02 +00:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
2021-11-22 10:10:26 +00:00
|
|
|
editUrl:
|
2022-06-03 17:40:09 +00:00
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve("./src/css/custom.css"),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2021-04-18 15:25:03 +00:00
|
|
|
plugins: [
|
|
|
|
[
|
2021-11-22 10:10:26 +00:00
|
|
|
"@docusaurus/plugin-content-docs",
|
|
|
|
{
|
|
|
|
id: "docsIntegrations",
|
|
|
|
path: "integrations",
|
|
|
|
routeBasePath: "integrations",
|
|
|
|
sidebarPath: require.resolve("./sidebarsIntegrations.js"),
|
|
|
|
editUrl:
|
2022-06-03 17:40:09 +00:00
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
2021-11-22 10:10:26 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
2021-04-18 15:25:03 +00:00
|
|
|
{
|
2021-11-22 10:10:26 +00:00
|
|
|
id: "docsDevelopers",
|
|
|
|
path: "developer-docs",
|
|
|
|
routeBasePath: "developer-docs",
|
|
|
|
sidebarPath: require.resolve("./sidebarsDev.js"),
|
|
|
|
editUrl:
|
2022-06-03 17:40:09 +00:00
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
2021-04-18 15:25:03 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2021-09-10 15:18:15 +00:00
|
|
|
ssrTemplate: `<!DOCTYPE html>
|
|
|
|
<html <%~ it.htmlAttributes %>>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=0.86, maximum-scale=3.0, minimum-scale=0.86">
|
|
|
|
<meta name="generator" content="Docusaurus v<%= it.version %>">
|
2021-10-20 13:27:37 +00:00
|
|
|
<script async defer data-domain="goauthentik.io" src="https://goauthentik.io/js/script.js"></script>
|
2021-09-10 15:18:15 +00:00
|
|
|
<%~ it.headTags %>
|
|
|
|
<% it.metaAttributes.forEach((metaAttribute) => { %>
|
|
|
|
<%~ metaAttribute %>
|
|
|
|
<% }); %>
|
|
|
|
<% it.stylesheets.forEach((stylesheet) => { %>
|
|
|
|
<link rel="stylesheet" href="<%= it.baseUrl %><%= stylesheet %>" />
|
|
|
|
<% }); %>
|
|
|
|
<% it.scripts.forEach((script) => { %>
|
|
|
|
<link rel="preload" href="<%= it.baseUrl %><%= script %>" as="script">
|
|
|
|
<% }); %>
|
|
|
|
</head>
|
|
|
|
<body <%~ it.bodyAttributes %> itemscope="" itemtype="http://schema.org/Organization">
|
|
|
|
<%~ it.preBodyTags %>
|
|
|
|
<div id="__docusaurus">
|
|
|
|
<%~ it.appHtml %>
|
|
|
|
</div>
|
|
|
|
<% it.scripts.forEach((script) => { %>
|
|
|
|
<script src="<%= it.baseUrl %><%= script %>"></script>
|
|
|
|
<% }); %>
|
|
|
|
<%~ it.postBodyTags %>
|
|
|
|
</body>
|
2021-11-22 10:10:26 +00:00
|
|
|
</html>`,
|
2020-11-15 21:42:02 +00:00
|
|
|
};
|