diff --git a/.zuul.yaml b/.zuul.yaml index cc15022..eded862 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,6 +1,7 @@ - project: templates: - check-requirements + - publish-openstack-docs-pti - tempest-plugin-jobs check: jobs: diff --git a/doc/requirements.txt b/doc/requirements.txt new file mode 100644 index 0000000..244b6b6 --- /dev/null +++ b/doc/requirements.txt @@ -0,0 +1,7 @@ +# The order of packages is significant, because pip processes them in the order +# of appearance. Changing the order has an impact on the overall integration +# process, which may cause wedges in the gate later. + +sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD +openstackdocstheme>=1.18.1 # Apache-2.0 +reno>=2.5.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 0a805cb..e4c2478 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,3 @@ hacking<0.13,>=0.12.0 # Apache-2.0 -sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD -openstackdocstheme>=1.18.1 # Apache-2.0 -# releasenotes -reno>=2.5.0 # Apache-2.0 diff --git a/tox.ini b/tox.ini index 2a74335..ef7ccbd 100644 --- a/tox.ini +++ b/tox.ini @@ -36,12 +36,19 @@ commands = [testenv:docs] basepython = python3 -commands = python setup.py build_sphinx +deps = + -r{toxinidir}/doc/requirements.txt +commands = + rm -rf doc/build + sphinx-build -W -b html doc/source doc/build/html [testenv:releasenotes] basepython = python3 +deps = + -r{toxinidir}/doc/requirements.txt 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 -b html releasenotes/source releasenotes/build/html [testenv:debug] commands = oslo_debug_helper {posargs}