blob: 6505b851295b7949f218578fee5a5e4b8fedf7d3 [file] [log] [blame]
Cédric Ollivier30932692021-11-22 14:21:29 +01001[tox]
2minversion = 1.6
3envlist = docs,docs-linkcheck
4skipsdist = true
5
6[testenv:docs]
7basepython = python3
8deps =
thmsdtacd34d72022-07-18 14:51:16 +02009 -r{toxinidir}/etc/requirements-docs.txt
10 -c{toxinidir}/etc/upper-constraints.os.txt
11 -c{toxinidir}/etc/upper-constraints.onap.txt
Cédric Ollivier30932692021-11-22 14:21:29 +010012commands =
thmsdtacd34d72022-07-18 14:51:16 +020013 sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
14 echo "Generated docs available in {toxinidir}/docs/_build/html"
Cédric Ollivier30932692021-11-22 14:21:29 +010015whitelist_externals =
16 echo
thmsdtacd34d72022-07-18 14:51:16 +020017 git
18 sh
19
20[testenv:docs-templates]
21basepython = python3
22deps =
23 -r{toxinidir}/etc/requirements-docs.txt
24 -c{toxinidir}/etc/upper-constraints.os.txt
25 -c{toxinidir}/etc/upper-constraints.onap.txt
26commands =
27 sphinx-build -b html -n -d {envtmpdir}/doctrees -c {toxinidir}/docs ./docs/guides/onap-developer/how-to-use-docs/templates {toxinidir}/docs/_build/html/templates
28 echo "Generated docs available in {toxinidir}/docs/_build/html/templates"
29whitelist_externals =
30 echo
31
32[testenv:local]
33basepython = python3
34deps =
35 -r{toxinidir}/etc/requirements-docs.txt
36 -c{toxinidir}/etc/upper-constraints.os.txt
37 -c{toxinidir}/etc/upper-constraints.onap.txt
38commands =
39 git submodule update --depth 100 --init
40 sphinx-build -q -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
41 echo "Generated docs available in {toxinidir}/docs/_build/html"
42whitelist_externals =
43 echo
44 git
Cédric Ollivier30932692021-11-22 14:21:29 +010045
46[testenv:docs-linkcheck]
47basepython = python3
48deps =
thmsdtacd34d72022-07-18 14:51:16 +020049 -r{toxinidir}/etc/requirements-docs.txt
50 -c{toxinidir}/etc/upper-constraints.os.txt
51 -c{toxinidir}/etc/upper-constraints.onap.txt
52commands = sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
53
54[testenv:spellcheck]
55basepython = python3
56deps =
57 -r{toxinidir}/etc/requirements-docs.txt
58 -c{toxinidir}/etc/upper-constraints.os.txt
59 -c{toxinidir}/etc/upper-constraints.onap.txt
Cédric Ollivier30932692021-11-22 14:21:29 +010060commands =
thmsdtacd34d72022-07-18 14:51:16 +020061 sphinx-build -b spelling -Dextensions=sphinxcontrib.spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spellcheck
62
63[testenv:autopep8]
64deps =
65 -r{toxinidir}/etc/requirements-docs.txt
66 -c{toxinidir}/etc/upper-constraints.os.txt
67 -c{toxinidir}/etc/upper-constraints.onap.txt
68commands =
69 autopep8 --max-line-length 120 --in-place docs/conf.py
70
71[testenv:pylint]
72deps =
73 -r{toxinidir}/etc/requirements-docs.txt
74 -c{toxinidir}/etc/upper-constraints.os.txt
75 -c{toxinidir}/etc/upper-constraints.onap.txt
76commands =
77 pylint --max-line-length=120 --disable=missing-docstring --reports=y --score=y --output-format=colorized docs/conf.py