diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-03-19 15:09:06 -0700 |
---|---|---|
committer | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2018-04-20 16:25:39 -0700 |
commit | 3affc968eb27e47e2d834773a3150db3c3fce2e6 (patch) | |
tree | 49a561e04d6eee81500e9eba6bb57e31e83f55bc /tox.ini | |
parent | 8d84d7d9ac290135804b8ab3f5506e175db8d29e (diff) |
Enable Local Docs builds by using LF Docs Conf
The docs-conf[1] project will allow releng to have local docs builds
using the OPNFV theme while also not needing to duplicate the opnfvdocs
conf.py file.
[1] https://github.com/lfit/releng-docs-conf
Change-Id: I255faf045eccb363993af9dfb81b487e538cbb41
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py27 +envlist = jjb,docs,docs-linkcheck skipsdist = True [testenv] @@ -18,3 +18,14 @@ deps = jenkins-job-builder==1.6.1 commands= jenkins-jobs test -o job_output -r jjb/global:{posargs:"jjb/"} + +[testenv:docs] +deps = -r{toxinidir}/docs/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 = -r{toxinidir}/docs/requirements.txt +commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs {toxinidir}/docs/_build/linkcheck |