@@ -3,7 +3,7 @@ description = Default tox environments list
33envlist =
44 code-style
55 doc-style
6- doc-{links,html,pdf,clean}
6+ doc-{links,html,pdf,clean,serve }
77 dist
88skip_missing_interpreters = true
99isolated_build = true
@@ -36,10 +36,12 @@ commands =
3636 vale sync --config =" {toxinidir}/doc/.vale.ini"
3737 vale --config =" {toxinidir}/doc/.vale.ini" " {toxinidir}/doc"
3838
39- [testenv:doc-{clean,links,html,pdf}]
39+ [testenv:doc-{clean,links,html,pdf,serve }]
4040description = Checks documentation links and pages generates properly
41+ skip_install =
42+ clean: true
4143allowlist_externals =
42- pdflatex
44+ pdf: pdflatex
4345extras = doc
4446setenv =
4547 SOURCE_DIR = doc/source
@@ -50,12 +52,13 @@ setenv =
5052 links,html,pdf: BUILDER_OPTS = --color -v -j auto -W --keep-going
5153commands =
5254 links,html,pdf: sphinx-build -d " {toxworkdir}/doc_doctree" {env:SOURCE_DIR} " {toxinidir}/{env:BUILD_DIR}/{env:BUILDER}" {env:BUILDER_OPTS} -b {env:BUILDER}
53- clean: python -c " import shutil, sys; shutil.rmtree(sys.argv[1], ignore_errors=True)" " {toxinidir}/{env:BUILD_DIR}"
55+ clean: python -c " import shutil, sys; shutil.rmtree(sys.argv[1], ignore_errors=True)" " {toxinidir}/{env:BUILD_DIR}"
56+ serve: stb serve " {toxinidir}/{env:SOURCE_DIR}/"
5457
5558[testenv:dist]
5659description = Checks project distribution
5760skip_install = true
5861deps =
5962 build
6063commands =
61- python -m build {toxinidir}
64+ python -m build {toxinidir}
0 commit comments