2023-05-18 22:59:43 +00:00
|
|
|
const config = require("./docusaurus.config");
|
2021-07-13 09:06:51 +00:00
|
|
|
|
2023-11-21 14:08:08 +00:00
|
|
|
module.exports = async function () {
|
2023-05-18 22:59:43 +00:00
|
|
|
const remarkGithub = (await import("remark-github")).default;
|
2023-09-25 10:42:54 +00:00
|
|
|
const defaultBuildUrl = (await import("remark-github")).defaultBuildUrl;
|
2023-05-18 22:59:43 +00:00
|
|
|
const mainConfig = await config();
|
|
|
|
return {
|
|
|
|
title: "authentik",
|
|
|
|
tagline: "Making authentication simple.",
|
|
|
|
url: "https://goauthentik.io",
|
|
|
|
baseUrl: "/if/help/",
|
|
|
|
onBrokenLinks: "throw",
|
|
|
|
favicon: "img/icon.png",
|
|
|
|
organizationName: "BeryJu",
|
|
|
|
projectName: "authentik",
|
|
|
|
themeConfig: {
|
|
|
|
navbar: {
|
|
|
|
logo: {
|
|
|
|
alt: "authentik logo",
|
2023-07-27 09:44:50 +00:00
|
|
|
src: "img/icon_left_brand.svg",
|
2021-07-13 09:06:51 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
items: [
|
|
|
|
{
|
|
|
|
to: "docs/",
|
|
|
|
activeBasePath: "docs",
|
|
|
|
label: "Docs",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: "integrations/",
|
|
|
|
activeBasePath: "integrations",
|
|
|
|
label: "Integrations",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: "developer-docs/",
|
|
|
|
activeBasePath: "developer-docs",
|
|
|
|
label: "Developer Docs",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://github.com/goauthentik/authentik",
|
|
|
|
label: "GitHub",
|
|
|
|
position: "right",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://goauthentik.io/discord",
|
|
|
|
label: "Discord",
|
|
|
|
position: "right",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-07-04 12:25:08 +00:00
|
|
|
footer: {
|
|
|
|
links: [],
|
|
|
|
copyright: mainConfig.themeConfig.footer.copyright,
|
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
colorMode: mainConfig.themeConfig.colorMode,
|
|
|
|
tableOfContents: mainConfig.themeConfig.tableOfContents,
|
|
|
|
},
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
"@docusaurus/preset-classic",
|
2021-07-13 09:06:51 +00:00
|
|
|
{
|
2023-05-18 22:59:43 +00:00
|
|
|
docs: {
|
|
|
|
id: "docs",
|
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
|
|
|
editUrl:
|
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
|
|
|
remarkPlugins: [
|
|
|
|
[
|
|
|
|
remarkGithub,
|
|
|
|
{
|
|
|
|
repository: "goauthentik/authentik",
|
|
|
|
// Only replace issues and PR links
|
2023-09-25 10:42:54 +00:00
|
|
|
buildUrl: function (values) {
|
2023-05-18 22:59:43 +00:00
|
|
|
return values.type === "issue"
|
|
|
|
? defaultBuildUrl(values)
|
|
|
|
: false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
pages: false,
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve("./src/css/custom.css"),
|
|
|
|
},
|
2021-07-13 09:06:51 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
2021-07-13 09:06:51 +00:00
|
|
|
{
|
2023-05-18 22:59:43 +00:00
|
|
|
id: "docsIntegrations",
|
|
|
|
path: "integrations",
|
|
|
|
routeBasePath: "integrations",
|
|
|
|
sidebarPath: require.resolve("./sidebarsIntegrations.js"),
|
|
|
|
editUrl:
|
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
2021-07-13 09:06:51 +00:00
|
|
|
},
|
|
|
|
],
|
2023-05-18 22:59:43 +00:00
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
|
|
|
{
|
|
|
|
id: "docsDevelopers",
|
|
|
|
path: "developer-docs",
|
|
|
|
routeBasePath: "developer-docs",
|
|
|
|
sidebarPath: require.resolve("./sidebarsDev.js"),
|
2021-11-22 11:08:54 +00:00
|
|
|
editUrl:
|
2022-06-03 17:40:09 +00:00
|
|
|
"https://github.com/goauthentik/authentik/edit/main/website/",
|
2021-07-13 09:06:51 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-client-redirects",
|
|
|
|
{
|
|
|
|
redirects: [
|
|
|
|
{
|
|
|
|
to: "/docs/",
|
|
|
|
from: ["/"],
|
|
|
|
},
|
|
|
|
],
|
2021-07-13 09:06:51 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
],
|
2021-07-13 09:06:51 +00:00
|
|
|
],
|
2023-05-18 22:59:43 +00:00
|
|
|
};
|
2021-07-13 09:06:51 +00:00
|
|
|
};
|