From 57f36bd7f9aa1225b95e6572221d13760d2554a2 Mon Sep 17 00:00:00 2001 From: Adam Krol Date: Tue, 19 Sep 2023 14:53:11 +0200 Subject: [PATCH] Fix canonical links for self-hosted docs --- .github/workflows/self-hosted-release.yaml | 2 ++ mkdocs.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/self-hosted-release.yaml b/.github/workflows/self-hosted-release.yaml index 16d8b3071..57834ed97 100644 --- a/.github/workflows/self-hosted-release.yaml +++ b/.github/workflows/self-hosted-release.yaml @@ -77,6 +77,7 @@ jobs: DOC_ENV: prod LOGO: "assets/images/logo-selfhosted.svg" WP_OPTIONS_API_URL: ${{ vars.WP_OPTIONS_API_URL }} + SITE_NAME: "https://docs.spacelift.io/self-hosted" - name: "Create preprod release" run: | @@ -91,6 +92,7 @@ jobs: SPACELIFT_DISTRIBUTION: "SELF_HOSTED" DOC_ENV: preprod WP_OPTIONS_API_URL: ${{ vars.WP_OPTIONS_API_URL }} + SITE_NAME: "https://docs.spacelift.io/self-hosted" - name: "Push branches" run: | diff --git a/mkdocs.yaml b/mkdocs.yaml index 4c40143f6..65156845c 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -3,7 +3,7 @@ copyright: © 2022 Spacelift, Inc. All rights reserved site_author: Spacelift site_description: Collaborative Infrastructure For Modern Software Teams site_name: Spacelift Documentation -site_url: https://docs.spacelift.io +site_url: !ENV [SITE_NAME, "https://docs.spacelift.io"] theme: custom_dir: overrides favicon: assets/images/favicon.png