Skip to content

Add versioned release and pre-release doc publishing workflows#1164

Merged
bengineerd merged 12 commits into
pre-releasefrom
doc-hist
Apr 13, 2026
Merged

Add versioned release and pre-release doc publishing workflows#1164
bengineerd merged 12 commits into
pre-releasefrom
doc-hist

Conversation

@bengineerd

@bengineerd bengineerd commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

Description

Add versioned documentation publishing on GitHub Pages so release docs can be retained per tag, expose a latest alias for the newest release, and publish development docs from pre-release.

Details

This change:

  • splits docs publishing out of the main CI workflow into dedicated release and pre-release workflows
  • adds a docs publishing helper script that writes versioned docs trees, versions.json, a versions index page, and the latest alias
  • adds a docs version selector and version-status banners to the Sphinx UI
  • adds repo-local implementation and rollout planning documents under docs/plans/

Related

  • release staging workflow supports manual validation under /staging-docs/ before production release publishing is exercised

- Introduced `docs_pre_release.yml` for publishing pre-release documentation on pushes to the `pre-release` branch.
- Added `docs_release.yml` for publishing release documentation on tag pushes and manual dispatch.
- Removed inline documentation generation from CI workflow to streamline processes.
- Updated documentation configuration to support version switching and improved UI elements in the documentation layout.
- Implemented a new script `docs_publish.py` for managing the documentation publishing process.
@bengineerd bengineerd changed the title docs: add versioned release and pre-release publishing workflows Add versioned release and pre-release doc publishing workflows Mar 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces versioned documentation publishing to GitHub Pages so release docs are retained per tag, a /latest/ alias points to the newest release, and /pre-release/ publishes development docs. It also updates the Sphinx theme customization to add a docs version selector and version-status banners, and adds repo-local rollout/implementation planning docs.

Changes:

  • Added dedicated GitHub Actions workflows for release-tag docs publishing and pre-release branch docs publishing.
  • Added scripts/docs_publish.py to write versioned docs trees plus shared versions.json, a /versions/ index page, and an optional root redirect.
  • Updated Sphinx template/static assets to fetch versions.json, render a version selector, and show version-status banners.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
scripts/docs_publish.py New publisher script to sync versioned docs trees and generate versions.json + versions index page (+ optional root redirect).
docs/src/conf.py Injects docs publishing context into Sphinx HTML templates via env vars.
docs/src/_templates/layout.html Adds version switcher container and exposes config into window.ROGUE_DOCS.
docs/src/_static/custom.js Adds client-side versions metadata fetching, version selector behavior, and banners.
docs/src/_static/custom.css Styles for the selector UI and banners.
docs/README.md Notes location of the new planning documents.
docs/plans/versioned-docs-rollout.md Rollout plan for safe deployment of versioned docs.
docs/plans/versioned-docs-implementation.md Architecture/implementation plan for versioned docs.
docs/plans/README.md Index for documentation planning docs.
.github/workflows/rogue_ci.yml Removes tag-triggered docs publishing from the main CI workflow.
.github/workflows/docs_release.yml New release docs publishing workflow (tag + manual staging).
.github/workflows/docs_pre_release.yml New pre-release branch docs publishing workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/docs_publish.py
Comment thread scripts/docs_publish.py
Comment thread docs/src/_static/custom.js
Comment thread .github/workflows/docs_release.yml
Comment thread docs/plans/versioned-docs-rollout.md
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.51%. Comparing base (b89f702) to head (9835101).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##           pre-release    #1164   +/-   ##
============================================
  Coverage        54.51%   54.51%           
============================================
  Files               70       70           
  Lines             7862     7862           
  Branches          1179     1179           
============================================
  Hits              4286     4286           
  Misses            3300     3300           
  Partials           276      276           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bengineerd bengineerd marked this pull request as ready for review April 13, 2026 17:22
@ruck314

ruck314 commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

@bengineerd I think this. OpenFPGA does a similar thing on their github.io as well

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/docs_release.yml
Comment thread .github/workflows/docs_release.yml
Comment thread .github/workflows/docs_pre_release.yml
Comment thread docs/src/_templates/layout.html Outdated
Comment thread scripts/docs_publish.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/docs_pre_release.yml Outdated
Comment thread docs/src/conf.py
Comment thread scripts/docs_publish.py
Comment thread scripts/docs_publish.py Outdated
Comment thread scripts/docs_publish.py
Comment thread .github/workflows/docs_release.yml
Comment thread .github/workflows/docs_release.yml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/docs_publish.py Outdated
@bengineerd bengineerd merged commit cc958f6 into pre-release Apr 13, 2026
7 checks passed
@bengineerd bengineerd deleted the doc-hist branch April 13, 2026 22:51
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.

4 participants