From 39e3f0250330961cb08b46fb2968f352f4ddfbd3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 22 Nov 2021 12:08:54 +0100 Subject: [PATCH] website: fix build for docs-only target Signed-off-by: Jens Langhammer --- website/docusaurus.docs-only.js | 39 ++++++++++++++----- .../services/home-assistant/index.md | 2 +- website/integrations/services/sonarr/index.md | 2 +- 3 files changed, 31 insertions(+), 12 deletions(-) diff --git a/website/docusaurus.docs-only.js b/website/docusaurus.docs-only.js index 17452bce3..06ce8c01f 100644 --- a/website/docusaurus.docs-only.js +++ b/website/docusaurus.docs-only.js @@ -23,6 +23,12 @@ module.exports = { label: "Docs", position: "left", }, + { + to: "integrations/", + activeBasePath: "integrations", + label: "Integrations", + position: "left", + }, { to: "developer-docs/", activeBasePath: "developer-docs", @@ -51,7 +57,8 @@ module.exports = { docs: { id: "docs", sidebarPath: require.resolve("./sidebars.js"), - editUrl: "https://github.com/goauthentik/authentik/edit/master/website/", + editUrl: + "https://github.com/goauthentik/authentik/edit/master/website/", }, pages: false, theme: { @@ -62,22 +69,34 @@ module.exports = { ], plugins: [ [ - '@docusaurus/plugin-content-docs', + "@docusaurus/plugin-content-docs", { - id: 'docsDevelopers', - path: 'developer-docs', - routeBasePath: 'developer-docs', - sidebarPath: require.resolve('./sidebarsDev.js'), - editUrl: "https://github.com/goauthentik/authentik/edit/master/website/", + id: "docsIntegrations", + path: "integrations", + routeBasePath: "integrations", + sidebarPath: require.resolve("./sidebarsIntegrations.js"), + editUrl: + "https://github.com/goauthentik/authentik/edit/master/website/", }, ], [ - '@docusaurus/plugin-client-redirects', + "@docusaurus/plugin-content-docs", + { + id: "docsDevelopers", + path: "developer-docs", + routeBasePath: "developer-docs", + sidebarPath: require.resolve("./sidebarsDev.js"), + editUrl: + "https://github.com/goauthentik/authentik/edit/master/website/", + }, + ], + [ + "@docusaurus/plugin-client-redirects", { redirects: [ { - to: '/docs/', - from: ['/'], + to: "/docs/", + from: ["/"], }, ], }, diff --git a/website/integrations/services/home-assistant/index.md b/website/integrations/services/home-assistant/index.md index 4f43f514a..a245f6fdb 100644 --- a/website/integrations/services/home-assistant/index.md +++ b/website/integrations/services/home-assistant/index.md @@ -60,6 +60,6 @@ Create an application in authentik and select the provider you've created above. ## Deployment -Create an outpost deployment for the provider you've created above, as described [here](../../../../../docs/outposts/outposts). Deploy this Outpost either on the same host or a different host that can access Home-Assistant. +Create an outpost deployment for the provider you've created above, as described [here](../../../docs/outposts/outposts). Deploy this Outpost either on the same host or a different host that can access Home-Assistant. The outpost will connect to authentik and configure itself. diff --git a/website/integrations/services/sonarr/index.md b/website/integrations/services/sonarr/index.md index 5c6223f02..81ab9afe3 100644 --- a/website/integrations/services/sonarr/index.md +++ b/website/integrations/services/sonarr/index.md @@ -37,6 +37,6 @@ Create an application in authentik and select the provider you've created above. ## Deployment -Create an outpost deployment for the provider you've created above, as described [here](../../../../../docs/outposts/outposts). Deploy this Outpost either on the same host or a different host that can access Sonarr. +Create an outpost deployment for the provider you've created above, as described [here](../../../docs/outposts/outposts). Deploy this Outpost either on the same host or a different host that can access Sonarr. The outpost will connect to authentik and configure itself.