summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAkihiro Motoki <amotoki@gmail.com>2015-11-28 04:58:33 +0900
committerAkihiro Motoki <amotoki@gmail.com>2015-11-28 06:20:48 +0900
commita14a5f9a27a03ff9ae2cd393f4c0a219c19b0322 (patch)
tree9e282d8d4816aa5d2740fcfb692d894d5243c2ed /tox.ini
parentf8d5bbccc2639472b5b713c216afaca7ecc9f612 (diff)
downloadpython-neutronclient-a14a5f9a27a03ff9ae2cd393f4c0a219c19b0322.tar.gz
Use sphinx-build -W in [docs] target
Even though [pbr] warnerrors = true is specified, somehow sphinx warnings are not treated as errors. If we use sphinx-build, -W option detects document warnings and it leads to better documentation quality. Fix a warning in the existing document too. Change-Id: Icbb39686c7a24f0040d998fb14e14c63613da190
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 1 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index c7291ef..452b751 100644
--- a/tox.ini
+++ b/tox.ini
@@ -36,8 +36,7 @@ setenv =
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
-commands=
- python setup.py build_sphinx
+commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:releasenotes]
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html