← Back to Pull requests

docs: publish versioned docs to gh-pages #417

Closed
unknown closed this pull request without merging on Nov 24, 2026 22:20 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 00:34 UTC
Author

The docs site had no publishing, and GitHub Pages already publishes the gh-pages branch for the Helm repository (index.yaml and charts/). 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 to gh-pages:

  • a push to main that changes docs/ publishes dev/

  • a vX.Y.Z tag publishes vX.Y/, so a patch release replaces its minor version's docs

  • workflow_dispatch publishes main or a tag again

  • pull requests build the site without publishing it
  • Each publish replaces one directory and regenerates versions.json from 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.yaml retry a rejected push to gh-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 an index.yaml conflict.

    Hugo isn't in .mise.toml, which every CI job installs. make docs-build runs the version that HUGO_VERSION in 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 adds dev/ to gh-pages. Check that helm repo update still works and https://prefecthq.github.io/prefect-operator/dev/ loads.

  • watch: the site root returns 404 until gh-pages has index.html. #420, against gh-pages, adds it, with 404.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

    Diff: 305 lines (+228 / -77) across 3 files Reviewer: chrisguidry Review duration: 1306m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.4% · Safe to merge
    17.4%