Skip to content

🐛 fix(docs): fix ReadTheDocs build#29

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:rewrite
Feb 25, 2026
Merged

🐛 fix(docs): fix ReadTheDocs build#29
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:rewrite

Conversation

@gaborbernat
Copy link
Member

@gaborbernat gaborbernat commented Feb 25, 2026

The ReadTheDocs build was failing because the tox invocation ended with a bare --, which set posargs to empty and caused sphinx-build to receive no output directory argument. 🔧

The fix passes $READTHEDOCS_OUTPUT/html as posargs so sphinx-build writes directly to the path RTD expects. Two RST title underlines in docs/index.rst and docs/explanation.rst were also too short, tripping the -W (warnings as errors) flag.

@gaborbernat gaborbernat added the bug Something isn't working label Feb 25, 2026
@gaborbernat gaborbernat enabled auto-merge (squash) February 25, 2026 17:25
@gaborbernat gaborbernat force-pushed the rewrite branch 2 times, most recently from 39ced82 to e794535 Compare February 25, 2026 17:27
The RTD build failed because the trailing `--` in the tox invocation set
posargs to empty, causing sphinx-build to receive no output directory.

Remove the `--`, let tox use the default output path, and copy the
result to `$READTHEDOCS_OUTPUT/html` where RTD expects it. Also fix
two RST title underlines that were too short, which caused failures
under `-W` (warnings as errors).

Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
@gaborbernat gaborbernat disabled auto-merge February 25, 2026 17:31
@gaborbernat gaborbernat merged commit 8254844 into tox-dev:main Feb 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant