docs: publish versioned docs to gh-pages #417
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 305 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #417"
general
weight: 0.35
chrisguidry
The docs site had no publishing, and GitHub Pages already publishes the
gh-pagesbranch for the Helm repository (index.yamlandcharts/). This publishes the docs into that branch without changing the Pages settings, and keeps one copy of the docs per release.The Docs workflow builds
docs/and commits it togh-pages:mainthat changesdocs/publishesdev/vX.Y.Ztag publishesvX.Y/, so a patch release replaces its minor version's docsworkflow_dispatchpublishesmainor a tag againEach publish replaces one directory and regenerates
versions.jsonfrom the version directories on the branch. It refuses to commit a change to any other path. The build job has read-only permissions, and only the publish job can write.A version menu at the top of each page reads
versions.json, so docs for an older release also list newer ones. Pages that aren't the newest release link to the same page in it.Both the Docs workflow and
helm-release.yamlretry a rejected push togh-pages. They start again from the new branch instead of rebasing, so a docs publish and a chart release that land together both succeed, and a second chart release no longer fails on anindex.yamlconflict.Hugo isn't in
.mise.toml, which every CI job installs.make docs-buildruns the version thatHUGO_VERSIONin the Makefile sets, and Renovate updates it.Rollout caveats
no-op: Pages stays in branch mode on gh-pages. The Helm repository's files aren't touched, and the guard fails the job before a commit that would touch them.watch: the first Docs run on main. It addsdev/togh-pages. Check thathelm repo updatestill works and https://prefecthq.github.io/prefect-operator/dev/ loads.watch: the site root returns 404 until gh-pages has index.html. #420, againstgh-pages, adds it, with404.html,versions.json, and.nojekyll.<details>
<summary>Session context</summary>
Switching Pages to GitHub Actions deployment was rejected, because it would change how the Helm repository is served. I tested the publish script in Docker against a copy of
gh-pages, with a chart push racing it, and the Helm step with a docs push racing it. Both retried and succeeded. I also rendered the redirect and the version menu in headless Chrome.</details>
🤖 Generated with Claude Code