Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 1.6 |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 3 | envlist = |
| 4 | docs, |
| 5 | docs-linkcheck, |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 6 | skipsdist = true |
| 7 | |
| 8 | [testenv:docs] |
Cédric Ollivier | aa00b4c | 2022-08-31 21:13:53 +0200 | [diff] [blame] | 9 | basepython = python3.8 |
Cédric Ollivier | ccd5040 | 2021-10-22 10:29:25 +0200 | [diff] [blame] | 10 | deps = |
| 11 | -r{toxinidir}/requirements-docs.txt |
Cédric Ollivier | aa00b4c | 2022-08-31 21:13:53 +0200 | [diff] [blame] | 12 | -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt |
Cédric Ollivier | ccd5040 | 2021-10-22 10:29:25 +0200 | [diff] [blame] | 13 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 14 | commands = |
Dan Timoney | a9cc0c3 | 2023-03-30 20:32:17 -0400 | [diff] [blame] | 15 | sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 16 | echo "Generated docs available in {toxinidir}/_build/html" |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 17 | allowlist_externals = |
Jessica Wagantall | 449c8be | 2020-02-06 13:25:49 -0800 | [diff] [blame] | 18 | echo |
| 19 | git |
| 20 | sh |
| 21 | |
| 22 | [testenv:docs-linkcheck] |
Cédric Ollivier | aa00b4c | 2022-08-31 21:13:53 +0200 | [diff] [blame] | 23 | basepython = python3.8 |
PatrikBuhr | 9f1d949 | 2023-04-17 13:00:15 +0200 | [diff] [blame] | 24 | deps = -r{toxinidir}/requirements-docs.txt |
| 25 | #commands = echo "Link Checking not enforced" |
| 26 | commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck |
| 27 | allowlist_externals = echo |
marineMD | ed0b182 | 2022-11-14 15:46:34 +0100 | [diff] [blame] | 28 | |
| 29 | [testenv:docs-spellcheck] |
| 30 | basepython = python3.8 |
| 31 | deps = |
| 32 | -r{toxinidir}/requirements-docs.txt |
| 33 | -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt |
| 34 | -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master |
| 35 | commands = |
| 36 | sphinx-build -W -q -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck |
| 37 | |
| 38 | |
| 39 | |