Skip to content

CI #1157: simplify versioned docs deployment#1175

Merged
prjemian merged 4 commits intomainfrom
1157-versioned-docs
Mar 27, 2026
Merged

CI #1157: simplify versioned docs deployment#1175
prjemian merged 4 commits intomainfrom
1157-versioned-docs

Conversation

@prjemian
Copy link
Copy Markdown
Contributor

Summary

  • dev/ auto-deploys on every push to main — no manual trigger needed for development docs.
  • Tagged releases deploy on manual trigger (workflow_dispatch with deploy: true) — publishes to <VERSION>/ subdirectory; old versions persist automatically (no zip download/rebuild cycle).
  • force_orphan removedpeaceiris/actions-gh-pages with destination_dir and keep_files: true now handles incremental updates without rebuilding the entire gh-pages tree.
  • define_versions.sh deleted — no longer needed.
  • scripts/make_switcher.py added — generates switcher.json from git tags with pruning rule (all patches for current major.minor, latest-patch-only for older minors). Run as part of the release process, commit result to main.
  • Root index.html simplified to a redirect to dev/ (replaces the hand-maintained version table).

Release process (replaces three hand-maintained files)

  1. git tag 1.7.10 && git push origin 1.7.10
  2. python scripts/make_switcher.py
  3. git add docs/source/_static/switcher.json && git commit -m "DOC: update switcher.json for 1.7.10" && git push
  4. Trigger Publish Sphinx Docs workflow with deploy: true

- Rewrite docs.yml: dev/ auto-deploys on every push to main;
  tagged releases deploy on manual workflow_dispatch only.
  Use peaceiris destination_dir (no force_orphan) so old version
  dirs persist without a zip download/rebuild cycle.
- Add scripts/make_switcher.py: generates switcher.json from git
  tags with pruning (all patches for current major.minor, latest
  patch only for older minors).  Run as part of release process.
- Add .github/pages/index.html: redirect to dev/ (replaces the
  hand-maintained index.html table).
- Delete .github/scripts/define_versions.sh: no longer needed.
- Regenerate switcher.json from current git tags.

Generated by OpenCode (argo/claudesonnet46)
@prjemian prjemian added this to the 1.7.10 milestone Mar 27, 2026
@prjemian prjemian self-assigned this Mar 27, 2026
- Include latest rc for a patch only when no final release exists.
- Drop all rc tags for a patch once the final release is tagged.
- Only the latest rc per base version is kept (not older rcs).
- rc tags are never marked as (latest) in the switcher — only the
  highest final release gets that label.

Generated by OpenCode (argo/claudesonnet46)
Generated by OpenCode (argo/claudesonnet46)
The feedstock clone lives outside the apstools repo directory
(anywhere on the filesystem). Add one-time setup instructions and
make Step 3 explicit that feedstock commands run in that separate
local clone, not inside the apstools directory.

Generated by OpenCode (argo/claudesonnet46)
@prjemian prjemian merged commit 51e6d81 into main Mar 27, 2026
7 checks passed
@prjemian prjemian deleted the 1157-versioned-docs branch March 27, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review how versioned docs are created

1 participant