Skip to content

fix(docs): serve site from temporal-operator.bmorton.dev custom domain#137

Merged
bmorton merged 1 commit into
mainfrom
fix/docs-custom-domain
Jul 24, 2026
Merged

fix(docs): serve site from temporal-operator.bmorton.dev custom domain#137
bmorton merged 1 commit into
mainfrom
fix/docs-custom-domain

Conversation

@bmorton

@bmorton bmorton commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Problem

The docs site moved from bmorton.github.io/temporal-operator to the custom domain https://temporal-operator.bmorton.dev, but it wasn't rendering: the page loaded unstyled because every asset, canonical, and og:url still used the /temporal-operator/ project-pages base path, so the CSS/JS 404'd at the domain root.

Root cause

The build-deploy job overrode Hugo's baseURL with --baseURL "${BASE_URL}/", where BASE_URL came from actions/configure-pages and still resolved to the old bmorton.github.io/temporal-operator subpath.

Changes

  • docs/hugo.tomlbaseURLhttps://temporal-operator.bmorton.dev/.
  • .github/workflows/docs.yml — drop the --baseURL override so the deploy builds with the config baseURL (matching the existing preview-build job).
  • docs/static/CNAME (new) — publishes temporal-operator.bmorton.dev to the site root so the custom domain persists across Actions deploys.
  • docs/content/tools/resource-preview.md — fix the hardcoded /temporal-operator/preview/ button link to /preview/.

Verification

Built locally with Hugo 0.140.2 (extended), matching CI:

  • Assets root-relative: /book.min….css, /favicon.png, /svg/menu.svg
  • canonical / og:urlhttps://temporal-operator.bmorton.dev/
  • CNAME present at site root; preview button → /preview/
  • No stray site-path refs remain (remaining temporal-operator/ strings are all legitimate github.com/bmorton/temporal-operator repo links)

Note

After merge, confirm the custom domain is set under Settings → Pages (the CNAME file will set/keep it) and re-enable Enforce HTTPS if it was cleared.

The docs moved from bmorton.github.io/temporal-operator to the custom
domain temporal-operator.bmorton.dev, but the site failed to render:
every asset, canonical, and og:url still used the /temporal-operator/
project-pages base path, so CSS/JS 404'd at the domain root.

- hugo.toml: set baseURL to https://temporal-operator.bmorton.dev/
- docs.yml: drop the --baseURL override that forced the github.io
  subpath; build with the config baseURL instead
- docs/static/CNAME: publish the custom domain to the site root so it
  persists across Actions deploys
- resource-preview.md: fix the hardcoded /temporal-operator/preview/
  button link to /preview/

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Brian Morton <brian@mmmhm.com>
@bmorton
bmorton merged commit 1f3a57e into main Jul 24, 2026
15 checks passed
@bmorton
bmorton deleted the fix/docs-custom-domain branch July 24, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant