Build sphinx doc automatically on changes

Change-Id: I6724622b531b4e2cd69f6b8b15f7f4c0e15ea5c8
This commit is contained in:
Yujun Zhang 2017-11-20 11:40:10 +08:00
parent e4cd17d385
commit 2a3e673f55
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