blob: 61596776bc6f65ad662dd05cae6336a96bd6d61b [file] [log] [blame]
Jessica Wagantalld4c19a92020-02-06 14:52:21 -08001[tox]
2minversion = 1.6
Vijay Venkatesh Kumar958df7b2022-11-01 12:02:45 -04003envlist = docs,docs-linkcheck,docs-spellcheck
Jessica Wagantalld4c19a92020-02-06 14:52:21 -08004skipsdist = true
5
6[testenv:docs]
Cédric Olliviere1930a62022-08-31 21:23:18 +02007basepython = python3.8
Eric Debeauea5c42a2021-09-29 21:28:28 +02008deps =
9 -r{toxinidir}/requirements-docs.txt
Cédric Olliviere1930a62022-08-31 21:23:18 +020010 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Vijay Venkatesh Kumar958df7b2022-11-01 12:02:45 -040011 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
12commands =
Jessica Wagantalld4c19a92020-02-06 14:52:21 -080013 sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
14 echo "Generated docs available in {toxinidir}/_build/html"
Vijay Venkatesh Kumar958df7b2022-11-01 12:02:45 -040015#commands = sphinx-build -W -q -b html -n -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/html
16
Jessica Wagantalld4c19a92020-02-06 14:52:21 -080017whitelist_externals =
18 echo
19 git
20 sh
Vijay Venkatesh Kumar958df7b2022-11-01 12:02:45 -040021
Jessica Wagantalld4c19a92020-02-06 14:52:21 -080022[testenv:docs-linkcheck]
Cédric Olliviere1930a62022-08-31 21:23:18 +020023basepython = python3.8
Eric Debeauea5c42a2021-09-29 21:28:28 +020024deps =
25 -r{toxinidir}/requirements-docs.txt
Cédric Olliviere1930a62022-08-31 21:23:18 +020026 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Vijay Venkatesh Kumar958df7b2022-11-01 12:02:45 -040027 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
28commands = echo "Link Checking not enforced"
29#commands = sphinx-build -W -q -b linkcheck -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/linkcheck
30
31[testenv:docs-spellcheck]
32basepython = python3.8
33deps =
34 -r{toxinidir}/requirements-docs.txt
35 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
36 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
37#commands = echo "Spell Check not enforced"
38commands = sphinx-build -W -q -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck