summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@huawei.com>2018-01-08 11:41:21 -0600
committerSean McGinnis <sean.mcginnis@huawei.com>2018-01-08 11:47:18 -0600
commit674d8052600b92ee85405af38f3c65f19a892871 (patch)
tree897fd8fc8a7aba98d9a086a5eef42abee55dfc17
parent68a64928ab46d960dc6ea8c9c48d850b4774891d (diff)
downloadoslo-rootwrap-674d8052600b92ee85405af38f3c65f19a892871.tar.gz
Treat doc warnings as errors
This adds a flag to the sphinx-build command to treat warnings as errors. It also cleans out the old doc related entries from setup.cfg since docs are no longer built using that method. Change-Id: I1bacf231605ab791d4b817223ab64be2a4133672
-rw-r--r--setup.cfg9
-rw-r--r--tox.ini2
2 files changed, 1 insertions, 10 deletions
diff --git a/setup.cfg b/setup.cfg
index da88228..de2e33b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -27,14 +27,5 @@ console_scripts =
oslo-rootwrap = oslo_rootwrap.cmd:main
oslo-rootwrap-daemon = oslo_rootwrap.cmd:daemon
-[build_sphinx]
-source-dir = doc/source
-build-dir = doc/build
-all_files = 1
-warning-is-error = 1
-
-[upload_sphinx]
-upload-dir = doc/build/html
-
[wheel]
universal = 1
diff --git a/tox.ini b/tox.ini
index c152eca..51e91a4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -35,7 +35,7 @@ commands = {posargs}
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
-commands = sphinx-build -b html doc/source doc/build/html
+commands = sphinx-build -W -b html doc/source doc/build/html
[flake8]
show-source = True