summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorBen Nemec <bnemec@redhat.com>2019-04-24 20:39:19 +0000
committerStephen Finucane <sfinucan@redhat.com>2019-06-07 18:37:58 +0100
commit96b84a90141add9a60153515daea95cfec2f8b53 (patch)
tree645f828bacbca70554cd55a54c54f972aaf26ea5 /tox.ini
parente8e9da3d90d29aec71802f61c5270c3e5cf7cc90 (diff)
downloadpbr-96b84a90141add9a60153515daea95cfec2f8b53.tar.gz
Stop using pbr sphinx integration
Switch to sphinx-build directly and add sphinxcontrib-apidoc for generated api docs. Change-Id: I089a7695986892dcb47c5b5e79a6a227891a2347
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index e761968..5cc32a9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -23,13 +23,17 @@ commands = flake8 {posargs}
[testenv:docs]
basepython = python3
+whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
-commands = python setup.py build_sphinx
+commands =
+ rm -rf doc/build doc/source/reference/api
+ sphinx-build -W -b html doc/source doc/build/html {posargs}
[testenv:releasenotes]
basepython = python3
+whitelist_externals = rm
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt