Update docs to use sphinx-build

Update the tox.ini helper env 'docs' to use sphinx-build directly like
the job does.

Use the build-sphinx-docs job rather than the openstack version as we do
not need constraints in zuul.

This does not move doc requirements to doc/requirements.txt because the
Zuul docs document the tests too, so the doc build needs all the things
in test-requirements as well.

Change-Id: Id81c05725d4dbe12dccc0272c396c92ff2f475ec
This commit is contained in:
Monty Taylor 2018-01-23 09:35:42 -06:00
parent 12696f225d
commit 52cb1e7825
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 4 additions and 3 deletions

View File

@ -32,7 +32,7 @@
name: openstack-infra/zuul
check:
jobs:
- build-openstack-sphinx-docs:
- build-sphinx-docs:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*
@ -46,7 +46,7 @@
- zuul-stream-functional
gate:
jobs:
- build-openstack-sphinx-docs:
- build-sphinx-docs:
irrelevant-files:
- zuul/cmd/migrate.py
- playbooks/zuul-migrate/.*

View File

@ -36,7 +36,8 @@ commands =
python setup.py test --coverage
[testenv:docs]
commands = python setup.py build_sphinx
commands =
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html
[testenv:venv]
commands = {posargs}