From 14e9d54b4ec58e70fe0e7998a935a68f81f400a0 Mon Sep 17 00:00:00 2001 From: Tobias Gesellchen Date: Sun, 24 May 2026 14:02:34 +0200 Subject: [PATCH] fix(docs): pass baseURL from configure-pages to Hugo build actions/configure-pages v5+ exports HUGO_BASEURL automatically, which overrides hugo.toml. By adding id: pages to the step and passing --baseURL explicitly, we get the correct sub-path (https://gesellix.github.io/Bose-SoundTouch/) on GitHub Pages while local dev (docker-compose.docs.yml already passes --baseURL /) continues to work unchanged. Also change hugo.toml baseURL to '/' as the neutral local default. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/docs.yml | 3 ++- docs/hugo.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 43f8a46..2fbe190 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,6 +22,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Setup Pages + id: pages uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 - name: Setup Hugo uses: peaceiris/actions-hugo@2752ce1d29631191ea3f27c23495fa06139a5b78 # v3.2.1 @@ -29,7 +30,7 @@ jobs: hugo-version: 'latest' extended: true - name: Build with Hugo - run: hugo --source docs/ --minify --destination ../_site + run: hugo --source docs/ --minify --destination ../_site --baseURL "${{ steps.pages.outputs.base_url }}" env: HUGO_ENVIRONMENT: production - name: Upload artifact diff --git a/docs/hugo.toml b/docs/hugo.toml index 62b154b..4438c75 100644 --- a/docs/hugo.toml +++ b/docs/hugo.toml @@ -1,4 +1,4 @@ -baseURL = "https://gesellix.github.io/Bose-SoundTouch/" +baseURL = "/" languageCode = "en-us" title = "AfterTouch"