summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorxudan16 <xudan16@huawei.com>2023-02-14 12:26:02 +0800
committerDan Xu <xudan16@huawei.com>2023-02-14 06:45:11 +0000
commit99fb7f7e6c0d23c390924593e1b9e93cceab1ba4 (patch)
tree1efd2d371fbfd82ebc5babd91df6f551c19c4fe2 /tox.ini
parentf845220cd17f89c8e1c68aecb3f0c7e82a56aa03 (diff)
Fix the Doc lint, shellcheck and doc links Errors
Signed-off-by: xudan16 <xudan16@huawei.com> Change-Id: I15b4cd15a17782999af30234b459f8aacf45e768 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/73867 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 4 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 7ebbddc..71c91d2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,14 +5,13 @@
[tox]
minversion = 3.5
skipsdist = True
-envlist = lint,docs
+envlist = lint,docs,docs-linkcheck
[testenv]
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:lint]
-deps =
- -r{toxinidir}/test-requirements.txt
+deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = bash
commands = bash -c "find {toxinidir} \
-not -path {toxinidir}/.tox/\* \
@@ -25,12 +24,12 @@ commands = bash -c "find {toxinidir} \
-name \*.rst | xargs rstcheck"
[testenv:docs]
-deps = -rdocs/requirements.txt
+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 = -rdocs/requirements.txt
+deps = -r{toxinidir}/docs/requirements.txt
commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck