Repository navigation
build(docs): Build the Sphinx documentation with Python (#962) - #2615
Merged
Merged
Conversation
…h file (#962) The Sphinx docs build is moving off docs/sphinx/make.bat. This RED drives the new module directly: it builds the same sphinx-build argv (-M <target> . _build plus SPHINXOPTS), defaults the target to help when none is given, and pins the wiring (the batch file gone, its GEN-005 exception gone). On the unfixed tree the module does not exist, so the two module cases error and the rest fail.
Ported docs/sphinx/make.bat to docs/sphinx/make.py (#962, GEN-005). The batch file's one line is kept token for token -- `sphinx-build -M <target> . _build` plus `SPHINXOPTS`, with SPHINXBUILD still selecting the tool and the target defaulting to `help` -- and it runs with the working directory set to the docs directory, so `SOURCEDIR=.` and `BUILDDIR=_build` resolve as before. A tool that is not installed prints the same install hint and exits 1. The batch file has no caller in the tree, so nothing else changes: make.bat is deleted and its ci.toml GEN-005 exception removed. The Unix Makefile beside it is not a GEN-005 exception and stays.
zackees
enabled auto-merge
October 27, 2026 11:51
Member
Author
|
Handed off to the coordinator.
|
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports
docs/sphinx/make.bat(36 lines) todocs/sphinx/make.py(#962, GEN-005).This is a focused CI/configuration fix: local RED evidence below, then the RED and GREEN commits pushed together (coordination.md §4 exception). No remote RED run is required.
What moves
make.batis the Windows counterpart ofdocs/sphinx/Makefileand the batch wrapper aroundsphinx-build. It has no caller in the tree —git grep -F "sphinx/make" -- . ':!docs/ci-evidence'finds only the ci.toml exception itself — so nothing else changes when it moves, and there is no interpreter constraint to satisfy at a call site.The batch file's one line is kept token for token:
SPHINXBUILDstill selects the tool (sphinx-buildby default);%1is the target and still defaults tohelpwhen none is given;SOURCEDIR/BUILDDIRare./_build, and the command runs with the working directory set to the docs directory, so both resolve as before;SPHINXOPTSis appended as tokens;The Unix
Makefilebeside it is not a GEN-005 exception (GEN-005 matches the shell/batch/PowerShell scripts) and stays.Red → green
76bdd2d62: newci/test_sphinx_make.pydrives the module by path — thesphinx-buildargv token for token (including theSPHINXOPTStail), thehelpdefault when no target is given, and (through a stubsphinx-buildon PATH recording its argv and cwd) thatmain()runs-M <target> . _buildfrom the docs directory; plus the wiring (the batch file gone, its GEN-005 exception gone). On the unfixed tree: 6 tests → 2 errors (FileNotFoundError: .../make.py) + 4 failures.6ec1a6379: the port,make.batdeleted, the ci.toml GEN-005 exception removed.Local checks (green)
uv run ci/test_sphinx_make.py— 6 OKuv run ci/test_ci_toml.py— 19 OKuv run ci/test_uv_run.py— 5 OK (TOOL-003)uvx ruff checkclean on both new filesci-lint precheck(pina1917ce): 563 approved exceptions, one fewer than master, and nodocs/sphinx/make.batentry under GEN-005.Refs #962.