blob: 543b20671d1a1f02c6a801f53f444afc7a1cddd0 [file] [log] [blame]
Jessica Wagantall8e493212020-02-06 15:02:37 -08001[tox]
2minversion = 1.6
3envlist = docs,
4skipsdist = true
5
6[testenv:docs]
Cédric Ollivier62ca4532022-08-31 21:35:31 +02007basepython = python3.8
Cédric Ollivierd6b0c102021-09-28 14:17:04 +02008deps =
9 -r{toxinidir}/requirements-docs.txt
Cédric Ollivier62ca4532022-08-31 21:35:31 +020010 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivier6f357042021-09-29 16:27:06 +020011 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
Jessica Wagantall8e493212020-02-06 15:02:37 -080012commands =
13 sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
14 echo "Generated docs available in {toxinidir}/_build/html"
15whitelist_externals =
16 echo
17 git
18 sh
19
20[testenv:docs-linkcheck]
Cédric Ollivier62ca4532022-08-31 21:35:31 +020021basepython = python3.8
Cédric Ollivierd6b0c102021-09-28 14:17:04 +020022deps =
23 -r{toxinidir}/requirements-docs.txt
Cédric Ollivier62ca4532022-08-31 21:35:31 +020024 -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
Cédric Ollivier6f357042021-09-29 16:27:06 +020025 -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
Michal Jagielloeaebcef2022-11-10 08:41:22 +000026commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
Jessica Wagantall8e493212020-02-06 15:02:37 -080027whitelist_externals = echo