* move 2023.7 to 2023.8 Signed-off-by: Jens Langhammer <jens@goauthentik.io> * move version dropdown from navbar to sidebar, and only have it on applicable sites Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove title instead of just hiding it Signed-off-by: Jens Langhammer <jens@goauthentik.io> * fix some styling for the mobile navbar sidebar Signed-off-by: Jens Langhammer <jens@goauthentik.io> * add social image Signed-off-by: Jens Langhammer <jens@goauthentik.io> * Optimised images with calibre/image-actions * fix website tests Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
		
			
				
	
	
		
			207 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			207 lines
		
	
	
		
			7.5 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const fs = require("fs").promises;
 | 
						|
 | 
						|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
 | 
						|
module.exports = async function () {
 | 
						|
    const remarkGithub = (await import("remark-github")).default;
 | 
						|
    const footerEmail = await fs.readFile("src/footer.html", {
 | 
						|
        encoding: "utf-8",
 | 
						|
    });
 | 
						|
    return {
 | 
						|
        title: "authentik",
 | 
						|
        tagline: "Bring all of your authentication into a unified platform.",
 | 
						|
        url: "https://goauthentik.io",
 | 
						|
        baseUrl: "/",
 | 
						|
        onBrokenLinks: "throw",
 | 
						|
        favicon: "img/icon.png",
 | 
						|
        organizationName: "Authentik Security Inc.",
 | 
						|
        projectName: "authentik",
 | 
						|
        themeConfig: {
 | 
						|
            image: "img/social.png",
 | 
						|
            navbar: {
 | 
						|
                logo: {
 | 
						|
                    alt: "authentik logo",
 | 
						|
                    src: "img/icon_left_brand.svg",
 | 
						|
                },
 | 
						|
                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: [
 | 
						|
                            {
 | 
						|
                                to: "jobs/",
 | 
						|
                                label: "Jobs",
 | 
						|
                                position: "left",
 | 
						|
                            },
 | 
						|
                            {
 | 
						|
                                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",
 | 
						|
            },
 | 
						|
        },
 | 
						|
        presets: [
 | 
						|
            [
 | 
						|
                "@docusaurus/preset-classic",
 | 
						|
                {
 | 
						|
                    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
 | 
						|
                                    buildUrl: function (
 | 
						|
                                        values,
 | 
						|
                                        defaultBuildUrl,
 | 
						|
                                    ) {
 | 
						|
                                        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",
 | 
						|
                    },
 | 
						|
                },
 | 
						|
            ],
 | 
						|
        ],
 | 
						|
        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/",
 | 
						|
                },
 | 
						|
            ],
 | 
						|
        ],
 | 
						|
        markdown: {
 | 
						|
            mermaid: true,
 | 
						|
        },
 | 
						|
        themes: ["@docusaurus/theme-mermaid"],
 | 
						|
        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",
 | 
						|
            },
 | 
						|
        ],
 | 
						|
    };
 | 
						|
};
 |