add requirements to doc

Change-Id: I3320623bce9a3351cac91d5b4c1d30fbb999e5b1
This commit is contained in:
Eyal 2021-01-04 17:51:16 +02:00
parent 0ee1f9431f
commit 1583bdaf7b
2 changed files with 15 additions and 2 deletions

5
doc/requirements.txt Normal file
View File

@ -0,0 +1,5 @@
sphinx>=2.0.0,!=2.1.0 # BSD
sphinxcontrib-httpdomain>=1.3.0 # BSD
sphinxcontrib-pecanwsme>=0.8.0 # Apache-2.0
openstackdocstheme>=2.2.1 # Apache-2.0
reno>=3.1.0 # Apache-2.0

12
tox.ini
View File

@ -35,11 +35,19 @@ commands =
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
deps = -r{toxinidir}/doc/requirements.txt
whitelist_externals =
rm
commands =
rm -fr doc/build
sphinx-build -E -W --keep-going -b html doc/source doc/build/html
[testenv:releasenotes]
whitelist_externals =
rm
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}