mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Improve tox docs config (#12434)
For example, allow for `CLEAN=true BUILDER=man tox -e docs -- -j4`, to use the `man` builder on a clean build, with 4 processes
This commit is contained in:
parent
568e26c797
commit
b97d14a8b0
5
tox.ini
5
tox.ini
@ -16,6 +16,8 @@ passenv =
|
||||
DO_EPUBCHECK
|
||||
EPUBCHECK_PATH
|
||||
TERM
|
||||
CLEAN
|
||||
BUILDER
|
||||
description =
|
||||
py{39,310,311,312,313}: Run unit tests against {envname}.
|
||||
extras =
|
||||
@ -33,7 +35,8 @@ description =
|
||||
extras =
|
||||
docs
|
||||
commands =
|
||||
sphinx-build -M html ./doc ./build/sphinx -W --keep-going
|
||||
python -c "import shutil; shutil.rmtree('./build/sphinx', ignore_errors=True) if '{env:CLEAN:}' else None"
|
||||
sphinx-build -M {env:BUILDER:html} ./doc ./build/sphinx -nW --keep-going {posargs}
|
||||
|
||||
[testenv:docs-live]
|
||||
basepython = python3
|
||||
|
Loading…
Reference in New Issue
Block a user