2023-05-18 22:59:43 +00:00
|
|
|
const fs = require("fs").promises;
|
2022-06-15 19:43:44 +00:00
|
|
|
|
2023-05-08 20:05:02 +00:00
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
2023-05-18 22:59:43 +00:00
|
|
|
module.exports = async function () {
|
|
|
|
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 footerEmail = await fs.readFile("src/footer.html", {
|
|
|
|
encoding: "utf-8",
|
|
|
|
});
|
|
|
|
return {
|
|
|
|
title: "authentik",
|
2023-07-27 09:44:50 +00:00
|
|
|
tagline: "Bring all of your authentication into a unified platform.",
|
2023-05-18 22:59:43 +00:00
|
|
|
url: "https://goauthentik.io",
|
|
|
|
baseUrl: "/",
|
|
|
|
onBrokenLinks: "throw",
|
|
|
|
favicon: "img/icon.png",
|
|
|
|
organizationName: "Authentik Security Inc.",
|
|
|
|
projectName: "authentik",
|
|
|
|
themeConfig: {
|
2023-08-22 11:03:11 +00:00
|
|
|
image: "img/social.png",
|
2023-05-18 22:59:43 +00:00
|
|
|
navbar: {
|
|
|
|
logo: {
|
|
|
|
alt: "authentik logo",
|
2023-07-27 09:44:50 +00:00
|
|
|
src: "img/icon_left_brand.svg",
|
2021-04-18 15:15:19 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
items: [
|
|
|
|
{ to: "blog", label: "Blog", position: "left" },
|
|
|
|
{
|
|
|
|
to: "docs/",
|
|
|
|
label: "Docs",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: "integrations/",
|
|
|
|
label: "Integrations",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: "developer-docs/",
|
|
|
|
label: "Developer",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
to: "pricing/",
|
|
|
|
label: "Pricing",
|
|
|
|
position: "left",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://github.com/goauthentik/authentik",
|
|
|
|
className: "header-github-link",
|
|
|
|
"aria-label": "GitHub repository",
|
|
|
|
position: "right",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
href: "https://goauthentik.io/discord",
|
|
|
|
className: "header-discord-link",
|
|
|
|
"aria-label": "GitHub repository",
|
|
|
|
position: "right",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
title: "Subscribe to authentik News",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
html: footerEmail,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Documentation",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: "Documentation",
|
|
|
|
to: "docs/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Integrations",
|
|
|
|
to: "integrations/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Developer Documentation",
|
|
|
|
to: "developer-docs/",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Installations",
|
|
|
|
to: "docs/installation/",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "More",
|
|
|
|
items: [
|
2023-07-04 12:25:08 +00:00
|
|
|
{
|
|
|
|
to: "jobs/",
|
|
|
|
label: "Jobs",
|
|
|
|
position: "left",
|
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
{
|
|
|
|
label: "GitHub",
|
|
|
|
href: "https://github.com/goauthentik/authentik",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Discord",
|
|
|
|
href: "https://goauthentik.io/discord",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} Authentik Security Inc. Built with Docusaurus.`,
|
|
|
|
},
|
|
|
|
tableOfContents: {
|
|
|
|
maxHeadingLevel: 5,
|
|
|
|
},
|
|
|
|
colorMode: {
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
},
|
|
|
|
algolia: {
|
|
|
|
appId: "36ROD0O0FV",
|
|
|
|
apiKey: "727db511300ca9aec5425645bbbddfb5",
|
|
|
|
indexName: "goauthentik",
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
"@docusaurus/preset-classic",
|
2020-11-15 21:42:02 +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;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
theme: {
|
|
|
|
customCss: require.resolve("./src/css/custom.css"),
|
|
|
|
},
|
|
|
|
gtag: {
|
|
|
|
trackingID: "G-9MVR9WZFZH",
|
|
|
|
anonymizeIP: true,
|
|
|
|
},
|
|
|
|
blog: {
|
|
|
|
showReadingTime: true,
|
|
|
|
blogSidebarTitle: "All our posts",
|
|
|
|
blogSidebarCount: "ALL",
|
|
|
|
},
|
2020-11-15 21:42:02 +00:00
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
[
|
|
|
|
"@docusaurus/plugin-content-docs",
|
2020-11-15 21:42:02 +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/",
|
2020-11-15 21:42:02 +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 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
|
|
|
},
|
2023-05-18 22:59:43 +00:00
|
|
|
],
|
2020-11-15 21:42:02 +00:00
|
|
|
],
|
2023-05-18 22:59:43 +00:00
|
|
|
markdown: {
|
|
|
|
mermaid: true,
|
|
|
|
},
|
|
|
|
themes: ["@docusaurus/theme-mermaid"],
|
|
|
|
scripts: [
|
2021-11-22 10:10:26 +00:00
|
|
|
{
|
2023-05-18 22:59:43 +00:00
|
|
|
src: "https://goauthentik.io/js/script.js",
|
|
|
|
async: true,
|
|
|
|
"data-domain": "goauthentik.io",
|
2021-11-22 10:10:26 +00:00
|
|
|
},
|
2021-04-18 15:25:03 +00:00
|
|
|
{
|
2023-05-18 22:59:43 +00:00
|
|
|
src: "https://boards.greenhouse.io/embed/job_board/js?for=authentiksecurity",
|
2021-04-18 15:25:03 +00:00
|
|
|
},
|
|
|
|
],
|
2023-05-18 22:59:43 +00:00
|
|
|
};
|
2020-11-15 21:42:02 +00:00
|
|
|
};
|