website: split (#8616)

* add package

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove most of website

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* keep relative api browser internal

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* remove more stuff

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* switch openapi renderer

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* keep tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* add placeholder index page to fix build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* re-add blog

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix default url

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix build?

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* actually fix build

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L
2024-02-28 00:59:04 +01:00
committed by GitHub
parent d29c3abc7d
commit d7ed1a5d30
128 changed files with 1084 additions and 8233 deletions

View File

@ -5,13 +5,10 @@ import type * as Preset from "@docusaurus/preset-classic";
module.exports = async function (): Promise<Config> {
const remarkGithub = (await import("remark-github")).default;
const defaultBuildUrl = (await import("remark-github")).defaultBuildUrl;
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",
url: "https://docs.goauthentik.io",
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/icon.png",
@ -25,7 +22,11 @@ module.exports = async function (): Promise<Config> {
src: "img/icon_left_brand.svg",
},
items: [
{ to: "blog", label: "Blog", position: "left" },
{
to: "https://goauthentik.io/blog",
label: "Blog",
position: "left",
},
{
to: "docs/",
label: "Docs",
@ -42,7 +43,7 @@ module.exports = async function (): Promise<Config> {
position: "left",
},
{
to: "pricing/",
to: "https://goauthentik.io/pricing/",
label: "Pricing",
position: "left",
},
@ -61,68 +62,7 @@ module.exports = async function (): Promise<Config> {
],
},
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",
},
],
},
{
title: "Legal",
items: [
{
to: "legal/terms",
label: "Terms & Conditions",
},
{
to: "legal/privacy-policy",
label: "Privacy policy",
},
],
},
],
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Authentik Security Inc. Built with Docusaurus.`,
},
tableOfContents: {
@ -168,10 +108,6 @@ module.exports = async function (): Promise<Config> {
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-9MVR9WZFZH",
anonymizeIP: true,
},
blog: {
showReadingTime: true,
blogSidebarTitle: "All our posts",
@ -179,6 +115,17 @@ module.exports = async function (): Promise<Config> {
},
} satisfies Preset.Options,
],
[
"redocusaurus",
{
specs: [
{
id: "main",
spec: "static/schema.yaml",
},
],
},
],
],
plugins: [
[
@ -208,15 +155,5 @@ module.exports = async function (): Promise<Config> {
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",
},
],
};
};