tox: Enable parallel docs builds

While we're here, specifying the doctree directory and configuring use
of saved environments doesn't really make sense when we blast all
previous doc build artefacts away on each build, so stop specifying
those.

Change-Id: I2b04a5c0ac121954aed91ae133e249a2e5813ee0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2020-09-10 16:34:23 +01:00
parent 01f63b875e
commit ea51c21bd9
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html {posargs}
sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html {posargs}
[testenv:mypy]
commands =
@ -72,7 +72,7 @@ whitelist_externals =
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
sphinx-build -W --keep-going -b html -j auto releasenotes/source releasenotes/build/html {posargs}
[hacking]
import_exceptions = oslo_config._i18n