Skip to content

docs: persist custom domain via docs/CNAME (fix cmcp.agentrust-io.com 404)#394

Merged
imran-siddique merged 2 commits into
mainfrom
fix/docs-cname-persist
Jul 7, 2026
Merged

docs: persist custom domain via docs/CNAME (fix cmcp.agentrust-io.com 404)#394
imran-siddique merged 2 commits into
mainfrom
fix/docs-cname-persist

Conversation

@imran-siddique

@imran-siddique imran-siddique commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds docs/CNAME containing cmcp.agentrust-io.com.
  • Removes the now-redundant repo-root CNAME.

Why

cmcp.agentrust-io.com was returning GitHub Pages 404 ("There isn't a GitHub Pages site here"). cmcp was the only project missing its Pages custom domain; ca2a / manifest / trace all have theirs set.

Root cause: mkdocs gh-deploy --force --clean (in .github/workflows/docs.yml) publishes only files under docs/. The custom domain value lived solely in the repo-root CNAME, which mkdocs does not copy, so a clean deploy dropped the CNAME from gh-pages and GitHub unset the custom domain.

Fix

  • Immediate (already applied out-of-band): set the Pages custom domain back to cmcp.agentrust-io.com via the Pages API. Site is live again (HTTP 200, HTTPS cert approved).
  • Durable (this PR): put CNAME inside docs/ so every mkdocs gh-deploy republishes it and the domain cannot be wiped again, matching the sibling docs sites. The repo-root CNAME is removed since the Pages source is the gh-pages branch and mkdocs never used it.

🤖 Generated with Claude Code

imran-siddique and others added 2 commits July 7, 2026 13:18
mkdocs gh-deploy only ships files under docs/. The custom domain
cmcp.agentrust-io.com lived only in the repo-root CNAME, which mkdocs
ignores, so gh-deploy --clean dropped it and GitHub Pages 404d on the
subdomain (cmcp was the only project missing it vs ca2a/manifest/trace).
Putting CNAME in docs/ makes every deploy preserve the domain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The custom domain now lives in docs/CNAME, which mkdocs publishes on
every gh-deploy. The repo-root CNAME is not used by the mkdocs build
(Pages source is the gh-pages branch), so it is safe to remove.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit 1d55403 into main Jul 7, 2026
11 checks passed
@imran-siddique imran-siddique deleted the fix/docs-cname-persist branch July 7, 2026 20:39
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