diff options
author | wenjuan dong <dong.wenjuan@zte.com.cn> | 2018-10-15 09:19:40 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-10-15 09:19:40 +0000 |
commit | 61eb3927ada784cc3dffb5ddd17f66e47871f708 (patch) | |
tree | 02c8ee8aadafdbb8e264833b84339a2a4688eedc /tox.ini | |
parent | 0f1dd4314b9e0247d9af7af6df2410462423aeca (diff) | |
parent | 42333625db781f1ae12212ce903df9b5257ff5e4 (diff) |
Merge "Local Documentation Builds"
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -1,6 +1,6 @@ [tox] minversion = 2.3.1 -envlist = py34, pep8 +envlist = py34, pep8,docs,docs-linkcheck skipsdist = True [testenv] @@ -49,3 +49,14 @@ enable-extensions=H106,H203 builtins = _ filename = *.py,app.wsgi exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests + +[testenv:docs] +deps = -rdocs/requirements.txt +commands = + sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + echo "Generated docs available in {toxinidir}/docs/_build/html" +whitelist_externals = echo + +[testenv:docs-linkcheck] +deps = -rdocs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck |