Merge "Add doc/requirements"

This commit is contained in:
Zuul
2021-01-05 19:39:23 +00:00
committed by Gerrit Code Review
3 changed files with 8 additions and 7 deletions

5
doc/requirements.txt Normal file
View File

@@ -0,0 +1,5 @@
# Documentation
reno>=3.1.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
os-api-ref>=1.4.0 # Apache-2.0

View File

@@ -10,9 +10,3 @@ testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
coverage!=4.4,>=4.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
# Documentation
reno>=3.1.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
os-api-ref>=1.4.0 # Apache-2.0

View File

@@ -39,7 +39,8 @@ commands = flake8 {posargs}
commands = {posargs}
[testenv:docs]
deps = {[testenv]deps}
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
@@ -88,6 +89,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b
[testenv:api-ref]
# This environment is called from CI scripts to test and publish
# the API Ref to docs.openstack.org.
deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
sphinx-build -WE --keep-going -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html