diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..ae18448 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,7 @@ +# These are needed for docs generation +openstackdocstheme>=1.17.0 # Apache-2.0 +sphinx>=1.6.2 # BSD +reno>=2.5.0 # Apache-2.0 + +mock>=2.0.0 # BSD +fixtures>=3.0.0 # Apache-2.0/BSD diff --git a/tox.ini b/tox.ini index 94b3d6b..c152eca 100644 --- a/tox.ini +++ b/tox.ini @@ -34,7 +34,8 @@ commands = commands = {posargs} [testenv:docs] -commands = python setup.py build_sphinx +deps = -r{toxinidir}/doc/requirements.txt +commands = sphinx-build -b html doc/source doc/build/html [flake8] show-source = True @@ -52,4 +53,5 @@ deps = pip_missing_reqs commands = pip-missing-reqs -d --ignore-module=oslo_rootwrap* --ignore-module=pkg_resources --ignore-file=oslo_rootwrap/test.py --ignore-file=oslo_rootwrap/tests/* oslo_rootwrap [testenv:releasenotes] +deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html