Skip to content

Serve the site at expanse-docs.sdsc.edu (custom domain) - #28

Draft
zonca wants to merge 4 commits into
mainfrom
docs/custom-domain
Draft

zonca wants to merge 4 commits into
mainfrom
docs/custom-domain

Conversation

@zonca

@zonca zonca commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

DRAFT: do not merge until the DNS record and the Pages custom-domain setting are live. Merging earlier breaks the current address: the deploy publishes static/CNAME to the gh-pages branch, which makes GitHub Pages redirect sdsc.github.io/expanse-docs to expanse-docs.sdsc.edu immediately, and until that domain is configured every existing link would bounce.

Rebased onto current main; the domain is expanse-docs.sdsc.edu following the naming decision on ticket #53110 (Ben Tolo flagged that expanse.sdsc.edu is the Expanse landing page URL; the umbrella docs.sdsc.edu idea was dropped in favor of plain per-project subdomains).

What changes

  • static/CNAME with expanse-docs.sdsc.edu; deploy.yml lets rsync manage the CNAME from the build (the old --exclude existed to preserve a Pages-managed file that was not in the build; the file now ships in git).
  • Docusaurus url: https://expanse-docs.sdsc.edu, baseUrl: "/".
  • PR previews move to https://expanse-docs.sdsc.edu/pr-preview/pr-<n>/.
  • Lighthouse audits the site at the root baseUrl (prepare step and 404 blocklist).
  • robots.txt advertises the sitemap at the new domain.
  • README, SECURITY.md and URL_MIGRATION.md point at the new address.

Cutover checklist, in order

  1. DNS (SDSC Support, revised request on ticket #53110): new record expanse-docs.sdsc.edu CNAME sdsc.github.io.
  2. Verify: dig +short expanse-docs.sdsc.edu resolves to the GitHub Pages edge.
  3. Repo admin: Settings → Pages → Custom domain: expanse-docs.sdsc.edu (GitHub validates the DNS and starts the Let's Encrypt certificate). From this point sdsc.github.io/expanse-docs 301-redirects to the new domain.
  4. Re-run the checks on this PR.
  5. Merge. The deploy publishes the CNAME and the root-baseUrl build; previews move to the new URL space.
  6. Settings → Pages: enable Enforce HTTPS once the certificate is ready (up to about an hour).
  7. Tell Ben the domain is live so he deploys old-page-redirect.html on the old page.

Notes

  • Between steps 3 and 5 the new domain serves the previous build with broken asset paths (old baseUrl); the window is the time it takes to merge and deploy, a few minutes.
  • Existing sdsc.github.io/expanse-docs links keep working through GitHub's permanent redirect.
  • Org hardening: expanse-docs.sdsc.edu will be added as a verified domain of the sdsc organization (TXT _github-pages-challenge-sdsc) so no other GitHub org can claim the subdomain.

github-actions Bot added a commit that referenced this pull request Nov 22, 2026
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Preview (Pages build may still be running): https://expanse-docs.sdsc.edu/pr-preview/pr-28/

@zonca
zonca force-pushed the docs/custom-domain branch from fe2ef56 to 93390e7 Compare November 22, 2026 17:15
github-actions Bot added a commit that referenced this pull request Nov 22, 2026
@zonca
zonca force-pushed the docs/custom-domain branch from 93390e7 to 1547d3e Compare December 2, 2026 04:35
@zonca zonca changed the title Serve the site at expanse.sdsc.edu (custom domain) Serve the site at expanse-docs.sdsc.edu (custom domain) Dec 2, 2026
github-actions Bot added a commit that referenced this pull request Dec 2, 2026

This branch has not been deployed

No deployments
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