Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/docs-backfill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ jobs:
# Build + install this tag's package so autodoc + the version label
# match the version being built.
python -m pip install ".[examples]" || python -m pip install .
# Old tttrlib does not expose __version__, which the old conf.py
# reads unguarded (AttributeError). Inject it (value = the version
# being built) so conf.py's version detection works.
TTTR_FILE=$(python -c "import tttrlib; print(tttrlib.__file__)" 2>/dev/null || true)
if [ -n "${TTTR_FILE}" ] && ! python -c "import tttrlib,sys; sys.exit(0 if hasattr(tttrlib,'__version__') else 1)" 2>/dev/null; then
printf "\n__version__ = '%s'\n" "${dest}" >> "${TTTR_FILE}"
fi
# Pre-tiered conf.py does not exclude the gallery-generated
# notebooks, which collide with the generated .rst ("multiple files
# found"). Add the exclusion the tiered conf.py already carries.
Expand Down
Loading