Add doc8 check to docs builds
Currently, doc8 only runs in the pep8 testenv. Add it to the docs testenv to make it easier not to submit a patch with an error. Change-Id: Id8f348109443a7829b5dae91c74dd03c1ea89376
This commit is contained in:
parent
f8fa57a8b9
commit
4bfd1c93a5
2
tox.ini
2
tox.ini
|
@ -123,8 +123,10 @@ commands = {posargs}
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
allowlist_externals = rm
|
allowlist_externals = rm
|
||||||
deps =
|
deps =
|
||||||
|
doc8
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
|
doc8
|
||||||
rm -rf doc/source/contributor/api doc/build/html doc/build/doctrees
|
rm -rf doc/source/contributor/api doc/build/html doc/build/doctrees
|
||||||
sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html
|
sphinx-build -W -j auto -b html -d doc/build/doctrees doc/source doc/build/html
|
||||||
# Test the redirects. This must run after the main docs build
|
# Test the redirects. This must run after the main docs build
|
||||||
|
|
Loading…
Reference in New Issue