Merge "Build sphinx doc automatically on changes"

This commit is contained in:
Zuul 2017-11-23 13:57:35 +00:00 committed by Gerrit Code Review
commit 961e8c4048
3 changed files with 16 additions and 3 deletions

View File

@ -61,4 +61,10 @@ confidence in the Jenkins result), please execute the following command::
$ tox
After running ``tox``, the documentation will be available for viewing in HTML
format in the ``doc/build/`` directory.
format in the ``doc/build/`` directory.
To build the document automatically on changes, use the command::
$ tox -e autobuild
Then open in a browser http://localhost:8000

View File

@ -7,4 +7,5 @@ sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
graphviz>=0.4,!=0.5.0 # MIT License
testrepository>=0.0.18
testtools>=0.9.34
yasfb
yasfb
sphinx-autobuild

View File

@ -18,4 +18,10 @@ commands = python setup.py build_sphinx
[testenv:doc8]
deps = -r{toxinidir}/requirements.txt doc8
commands = doc8 doc/source
commands = doc8 doc/source
[testenv:autobuild]
whitelist_externals =
sphinx-autobuild
commands =
sphinx-autobuild doc/source doc/build