mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05: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:
1 parent
568e26c797
commit
b97d14a8b0
1 file changed
+4
-1
@@ -16,6 +16,8 @@ passenv =
|
|||||||
DO_EPUBCHECK
|
DO_EPUBCHECK
|
||||||
EPUBCHECK_PATH
|
EPUBCHECK_PATH
|
||||||
TERM
|
TERM
|
||||||
|
CLEAN
|
||||||
|
BUILDER
|
||||||
description =
|
description =
|
||||||
py{39,310,311,312,313}: Run unit tests against {envname}.
|
py{39,310,311,312,313}: Run unit tests against {envname}.
|
||||||
extras =
|
extras =
|
||||||
@@ -33,7 +35,8 @@ description =
|
|||||||
extras =
|
extras =
|
||||||
docs
|
docs
|
||||||
commands =
|
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]
|
[testenv:docs-live]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|||||||
Reference in new issue
Block a user