Skip to content

Commit b341fc4

Browse files
committed
tox: add documentation helper environments
Adding test environments to help sanity check documentation builds in a virtual environment. Signed-off-by: James Knight <[email protected]>
1 parent ef9cc70 commit b341fc4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ pip_pre = true
4747
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}release]
4848
usedevelop = false
4949

50+
[testenv:doc-html]
51+
changedir = doc
52+
commands = {envpython} -m sphinx -M html . _build/html -E -a
53+
54+
[testenv:doc-latexpdf]
55+
changedir = doc
56+
commands = {envpython} -m sphinx -M latexpdf . _build/latexpdf -E -a
57+
5058
[testenv:pylint]
5159
deps =
5260
{[testenv]deps}

0 commit comments

Comments
 (0)