From a18e2b0d45c631709e457530f6f9d0b52f552156 Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Thu, 6 Sep 2018 10:45:01 +0200 Subject: Adapting local docs build and remove build warnings The OPNFV docs project will remove its submodules and enable local docs builds. This patch prepares the Dovetail repo according to the official transition guide: https://docs.opnfv.org/en/latest/how-to-use-docs/local-build-transition.html This patch also applies syntactical changes which eliminate the sphinx doc build warnings. Change-Id: Ief8fd2d1c3e39b232d214a9ab392879ee4a492c8 Signed-off-by: Georg Kunz --- tox.ini | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 9b94ee72..55a9e847 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,11 @@ [tox] minversion = 2.5 skipsdist = True -envlist = pep8,py27 +envlist = + pep8, + py27, + docs, + docs-linkcheck [testenv] basepython=python2 @@ -34,10 +38,12 @@ ignore = E123,E125,H803,E722 exclude = .tox,dist,docs,*egg,build,.venv,.git [testenv:docs] +deps = -rdocs/requirements.txt commands = - touch ./docs/index.rst - - wget -q -nc https://raw.githubusercontent.com/opnfv/opnfvdocs/master/etc/requirements.txt -O ./docs/requirements.txt - pip install -r ./docs/requirements.txt - pip install sphinx_opnfv_theme 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 -- cgit 1.2.3-korg