Skip to content

ci(docs-backfill): isolated venv + per-version toolchain#57

Merged
tpeulen merged 1 commit into
developmentfrom
ci/backfill-isolated-env
Jul 20, 2026
Merged

ci(docs-backfill): isolated venv + per-version toolchain#57
tpeulen merged 1 commit into
developmentfrom
ci/backfill-isolated-env

Conversation

@tpeulen

@tpeulen tpeulen commented Jul 19, 2026

Copy link
Copy Markdown
Member

Fixes two backfill defects surfaced while populating the version selector:

  1. 0.26.0 mislabeled as v0.26.1 — the backfill installed each tag's package into one shared env, so 0.26.0 built while 0.26.1 was still installed (import tttrlib.__version__ / autodoc picked up 0.26.1). Now each version builds in its own virtualenv.
  2. 0.24.x / 0.25.x fail to build — their older, pre-tiered conf.py breaks under modern Sphinx (a cascade: bibtex_bibfiles required by bibtex 2.x, sphinx-gallery pickle error, gallery .ipynb colliding with .rst). Now the toolchain is chosen per version: tiered conf.py (BUILD_TIER) → modern; pre-tiered → its contemporary pins (sphinx<7, sphinxcontrib-bibtex<2, older sphinx-gallery) plus the auto_examples/*.ipynb exclusion the tiered conf already has.

After merge, re-dispatch the backfill for all versions; each builds correctly and with the right version label.

Build each version in its own virtualenv so the installed tttrlib version does
not leak between builds (a shared env mislabeled 0.26.0 as 0.26.1). Select the
doc toolchain per version: tiered conf.py (BUILD_TIER) uses the modern
toolchain; older pre-tiered conf.py builds with its contemporary pins
(sphinx<7, sphinxcontrib-bibtex<2, older sphinx-gallery), and gets the
auto_examples notebook-exclusion the tiered conf.py already carries. Fixes the
0.26.0 mislabel and lets 0.24.x/0.25.x build.
@tpeulen
tpeulen merged commit 3304015 into development Jul 20, 2026
26 checks passed
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