summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2020-09-10 15:12:56 +0100
committerStephen Finucane <stephenfin@redhat.com>2021-01-27 16:46:21 +0000
commit7062e1db8bc71ecf881f70fc149a27ca1532061d (patch)
tree9978240b5a9c181121fc52c4e10759882e8caf67 /tox.ini
parentd92c0740c6aeaad983736f6e87d9960886e8df80 (diff)
downloadnova-7062e1db8bc71ecf881f70fc149a27ca1532061d.tar.gz
tox: Enable parallel docs build
This significantly speeds up our doc build process. This requires a newer version of 'sphinx-feature-classification' and some tweaks to our own in-tree extensions. While we're here, we drop the '-d DOCTREE_DIR' parameter since it's of no use when we blast away our previously built docs each time we build. Change-Id: I679da65d44c40880f720df8a2f06286a19eb8d22 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 5 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index e46a82ced9..8b2542e42c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -185,7 +185,7 @@ deps =
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build/html doc/build/doctrees
- sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
+ sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
# Test the redirects. This must run after the main docs build
whereto doc/build/html/.htaccess doc/test/redirect-tests.txt
@@ -196,7 +196,7 @@ envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
rm -rf doc/build/pdf
- sphinx-build -W -b latex doc/source doc/build/pdf
+ sphinx-build -W --keep-going -b latex -j auto doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:api-guide]
@@ -206,7 +206,7 @@ envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
rm -rf api-guide/build
- sphinx-build -W --keep-going -b html -d api-guide/build/doctrees api-guide/source api-guide/build/html
+ sphinx-build -W --keep-going -b html -j auto api-guide/source api-guide/build/html
[testenv:api-ref]
description =
@@ -215,7 +215,7 @@ envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
- sphinx-build -W --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
+ sphinx-build -W --keep-going -b html -j auto api-ref/source api-ref/build/html
[testenv:releasenotes]
description =
@@ -224,7 +224,7 @@ envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
rm -rf releasenotes/build
- sphinx-build -W --keep-going -b html -d releasenotes/build/doctrees releasenotes/source releasenotes/build/html
+ sphinx-build -W --keep-going -b html -j auto releasenotes/source releasenotes/build/html
[testenv:all-docs]
description =