Skip to content

Publish versioned docs: stable at root, dev under /dev/#8

Open
TomaSusi wants to merge 1 commit into
mainfrom
claude/serene-tu-81e14b
Open

Publish versioned docs: stable at root, dev under /dev/#8
TomaSusi wants to merge 1 commit into
mainfrom
claude/serene-tu-81e14b

Conversation

@TomaSusi

@TomaSusi TomaSusi commented Jul 7, 2026

Copy link
Copy Markdown
Member

Summary

  • Publish two doc versions on GitHub Pages: stable (release-built, stays at the site root — the default readers see) and dev (built from main on every push, served under /dev/).
  • deploy-book.yml (release trigger) now carries the existing /dev/ tree forward into each new root snapshot instead of wiping it; a new deploy-dev.yml workflow publishes main into /dev/ only.
  • abtem_version_footer.py extended: dev builds get a warning banner + noindex (kept out of search); stable builds get a footer link to the dev docs. Controlled by ABTEM_DOCS_VERSION (defaults to stable, so local/RTD builds are unaffected).
  • Cleanup: deduped docs/requirements.txt, removed dead docs/doc_requirements.txt, fixed _config.yml's repository links (were pointing at the jupyter-book template repo).

Test plan

  • Local build verified for both ABTEM_DOCS_VERSION=dev and =stable (banner/noindex/footer link present only where expected)
  • After merge: trigger deploy-book via workflow_dispatch to refresh the root with the new footer (the merge itself triggers the first /dev/ deploy)
  • Spot-check https://abtem.github.io/doc/ and https://abtem.github.io/doc/dev/ once deployed

🤖 Generated with Claude Code

Stable (release-built) docs remain the default at the site root; a new
deploy-dev workflow publishes main to /dev/ on every docs push. The two
versions cross-link via the footer (stable -> dev) and an announcement
banner (dev -> stable), and dev pages carry a robots noindex tag so
search engines only surface stable. The release deploy now carries the
existing /dev/ tree forward so the two publish cadences don't clobber
each other.

Also tidies docs/requirements.txt (duplicates, unused sphinx_rtd_theme/
nbsphinx), removes the dead doc_requirements.txt, and points the
repository buttons at abTEM/doc instead of the jupyter-book template.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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