website: split integrations partially (#15076)
* config for split
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* update alllll the links
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* add redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* add separate job for integrations build
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* Update website/netlify.toml
Co-authored-by: Dominic R <dominic@sdko.org>
Signed-off-by: Jens L. <jens@beryju.org>
* Revert "update alllll the links"
This reverts commit 872c5870a8.
* absolute relative URLs only
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* but use a plugin to rewrite them
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix external URL regex
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* make rewrite plugin more re-usable
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix the reverse links
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* lint
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix root redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix rediret
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix root redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
* fix redirect
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
---------
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Signed-off-by: Jens L. <jens@beryju.org>
Co-authored-by: Dominic R <dominic@sdko.org>
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
# Conflicts:
# .github/workflows/ci-website.yml
# website/docusaurus.config.esm.mjs
This commit is contained in:
139
website/integrations/docusaurus.config.esm.mjs
Normal file
139
website/integrations/docusaurus.config.esm.mjs
Normal file
@ -0,0 +1,139 @@
|
||||
/**
|
||||
* @file Docusaurus config.
|
||||
*
|
||||
* @import * as Preset from "@docusaurus/preset-classic";
|
||||
* @import { BuildUrlValues } from "remark-github";
|
||||
*/
|
||||
import { createDocusaurusConfig } from "@goauthentik/docusaurus-config";
|
||||
import { createRequire } from "node:module";
|
||||
import remarkDirective from "remark-directive";
|
||||
import remarkGithub, { defaultBuildUrl } from "remark-github";
|
||||
|
||||
import remarkEnterpriseDirective from "../remark/enterprise-directive.mjs";
|
||||
import remarkLinkRewrite from "../remark/link-rewrite-directive.mjs";
|
||||
import remarkPreviewDirective from "../remark/preview-directive.mjs";
|
||||
import remarkSupportDirective from "../remark/support-directive.mjs";
|
||||
import remarkVersionDirective from "../remark/version-directive.mjs";
|
||||
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
/**
|
||||
* Documentation site configuration for Docusaurus.
|
||||
*/
|
||||
const config = createDocusaurusConfig({
|
||||
url: "https://integrations.goauthentik.io",
|
||||
future: {
|
||||
experimental_faster: true,
|
||||
},
|
||||
themes: ["@docusaurus/theme-mermaid"],
|
||||
themeConfig: {
|
||||
image: "img/social.png",
|
||||
navbar: {
|
||||
logo: {
|
||||
alt: "authentik logo",
|
||||
src: "img/icon_left_brand.svg",
|
||||
href: "https://goauthentik.io/",
|
||||
target: "_self",
|
||||
},
|
||||
items: [
|
||||
{
|
||||
to: "https://goauthentik.io/features",
|
||||
label: "Features",
|
||||
position: "left",
|
||||
target: "_self",
|
||||
},
|
||||
{
|
||||
to: "integrations/",
|
||||
label: "Integrations",
|
||||
position: "left",
|
||||
},
|
||||
{
|
||||
to: "https://docs.goauthentik.io",
|
||||
label: "Documentation",
|
||||
position: "left",
|
||||
target: "_self",
|
||||
},
|
||||
{
|
||||
to: "https://goauthentik.io/pricing/",
|
||||
label: "Pricing",
|
||||
position: "left",
|
||||
target: "_self",
|
||||
},
|
||||
{
|
||||
to: "https://goauthentik.io/blog",
|
||||
label: "Blog",
|
||||
position: "left",
|
||||
target: "_self",
|
||||
},
|
||||
{
|
||||
"href": "https://github.com/goauthentik/authentik",
|
||||
"data-icon": "github",
|
||||
"aria-label": "GitHub",
|
||||
"position": "right",
|
||||
},
|
||||
{
|
||||
"href": "https://goauthentik.io/discord",
|
||||
"data-icon": "discord",
|
||||
"aria-label": "Discord",
|
||||
"position": "right",
|
||||
},
|
||||
],
|
||||
},
|
||||
footer: {
|
||||
links: [],
|
||||
copyright: `Copyright © ${new Date().getFullYear()} Authentik Security Inc. Built with Docusaurus.`,
|
||||
},
|
||||
algolia: {
|
||||
appId: "36ROD0O0FV",
|
||||
apiKey: "727db511300ca9aec5425645bbbddfb5",
|
||||
indexName: "goauthentik",
|
||||
externalUrlRegex: /(:\/\/goauthentik\.io|docs\.goauthentik\.io)/.toString(),
|
||||
},
|
||||
},
|
||||
presets: [
|
||||
[
|
||||
"@docusaurus/preset-classic",
|
||||
/** @type {Preset.Options} */ ({
|
||||
docs: {
|
||||
id: "docsIntegrations",
|
||||
path: "integrations",
|
||||
routeBasePath: "integrations",
|
||||
sidebarPath: "./sidebars/integrations.mjs",
|
||||
editUrl: "https://github.com/goauthentik/authentik/edit/main/website/",
|
||||
showLastUpdateTime: false,
|
||||
|
||||
beforeDefaultRemarkPlugins: [
|
||||
remarkDirective,
|
||||
remarkLinkRewrite(new Map([["/docs", "https://docs.goauthentik.io"]])),
|
||||
remarkVersionDirective,
|
||||
remarkEnterpriseDirective,
|
||||
remarkPreviewDirective,
|
||||
remarkSupportDirective,
|
||||
],
|
||||
remarkPlugins: [
|
||||
[
|
||||
remarkGithub,
|
||||
{
|
||||
repository: "goauthentik/authentik",
|
||||
/**
|
||||
* @param {BuildUrlValues} values
|
||||
*/
|
||||
buildUrl: (values) => {
|
||||
// Only replace issues and PR links
|
||||
return values.type === "issue" || values.type === "mention"
|
||||
? defaultBuildUrl(values)
|
||||
: false;
|
||||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
theme: {
|
||||
customCss: require.resolve("@goauthentik/docusaurus-config/css/index.css"),
|
||||
},
|
||||
}),
|
||||
],
|
||||
],
|
||||
});
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user