From 0a312821ee4177a9c97dd1ce18299f8156b53207 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 6 May 2024 12:30:43 +0200 Subject: [PATCH] website/docs: fix api browser references (#9577) * website/docs: fix api browser references Signed-off-by: Jens Langhammer * don't attempt to correct generated docs Signed-off-by: Jens Langhammer * fix? Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- Makefile | 1 + website/developer-docs/api/flow-executor.md | 2 +- website/docs/advanced/tenancy.md | 2 +- website/integrations/services/nextcloud/index.md | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index f7f4c3d785..438992e41d 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ pg_name := $(shell python -m authentik.lib.config postgresql.name 2>/dev/null) CODESPELL_ARGS = -D - -D .github/codespell-dictionary.txt \ -I .github/codespell-words.txt \ -S 'web/src/locales/**' \ + -S 'website/developer-docs/api/reference/**' \ authentik \ internal \ cmd \ diff --git a/website/developer-docs/api/flow-executor.md b/website/developer-docs/api/flow-executor.md index 7be271c855..9006f8e89e 100644 --- a/website/developer-docs/api/flow-executor.md +++ b/website/developer-docs/api/flow-executor.md @@ -60,7 +60,7 @@ Depending on the flow, you'll either get a 200 Response with another challenge, Depending also on the stage, a response might take longer to be returned (especially with the Duo Authenticator validation). -To see the data layout for every stage possible, see the [API Browser](https://goauthentik.io/api/#get-/api/v3/flows/executor/-flow_slug-/) +To see the data layout for every stage possible, see the [API Browser](./reference/flows-executor-get) ## Result diff --git a/website/docs/advanced/tenancy.md b/website/docs/advanced/tenancy.md index e5a57bdfeb..de8ba6deac 100644 --- a/website/docs/advanced/tenancy.md +++ b/website/docs/advanced/tenancy.md @@ -58,7 +58,7 @@ Be sure to disable the embedded outpost with `AUTHENTIK_OUTPOSTS__DISABLE_EMBEDD ### 2. Create a new tenant with authentik API endpoints -Tenants are created using the API routes associated. Search for `tenant` in the [API browser](../../developer-docs/api/) for the available endpoints. +Tenants are created using the API routes associated. Search for `tenant` in the [API browser](/developer-docs/api/reference/authentik) for the available endpoints. When creating a tenant you must specify a `name`, used for display purposes, and a `schema_name`, used to create the PostgreSQL schema associated with the tenant. diff --git a/website/integrations/services/nextcloud/index.md b/website/integrations/services/nextcloud/index.md index a3437ddf36..43ad940a1f 100644 --- a/website/integrations/services/nextcloud/index.md +++ b/website/integrations/services/nextcloud/index.md @@ -77,7 +77,7 @@ return { "quota": user.group_attributes().get("nextcloud_quota", None), # To connect an already existing user, set the "nextcloud_user_id" property in the # user's attributes to the username of the corresponding user on Nextcloud. - "user_id": user.attributes.get("nextcloud_user_id", user.uuid), + "user_id": user.attributes.get("nextcloud_user_id", str(user.uuid)), } ```