@@ -82,16 +82,11 @@ commands =
82
82
[docs]
83
83
docs_dir = {tox_root}{/}docs
84
84
build_dir = {[docs]docs_dir}{/}_build
85
- # replace when Sphinx>=7.3 and Python 3.8 is dropped:
86
- # -T => --show-traceback
87
- # -W => --fail-on-warning
88
- # -b => --builder
89
- # -v => --verbose
90
- # -a => --write-all
91
- # -E => --fresh-env
92
- sphinx_args = -T -W --keep-going --jobs auto
85
+ sphinx_args = --show-traceback --fail-on-warning --keep-going --jobs auto
93
86
94
87
[testenv:docs{,-lint,-all,-live,-live-src}]
88
+ # Docs are always built on Python 3.12. See also the RTD config and contribution docs.
89
+ base_python = py312
95
90
skip_install = True
96
91
# give sphinx-autobuild time to shutdown http server
97
92
suicide_timeout = 1
@@ -104,9 +99,9 @@ passenv =
104
99
# export PYENCHANT_LIBRARY_PATH=/opt/homebrew/lib/libenchant-2.2.dylib
105
100
PYENCHANT_LIBRARY_PATH
106
101
commands =
107
- !lint-!all-!live : python -m sphinx {[docs]sphinx_args} {posargs} -b html {[docs]docs_dir} {[docs]build_dir}{/}html
108
- lint : python -m sphinx {[docs]sphinx_args} {posargs} -b spelling {[docs]docs_dir} {[docs]build_dir}{/}spell
109
- lint : python -m sphinx {[docs]sphinx_args} {posargs} -b linkcheck {[docs]docs_dir} {[docs]build_dir}{/}links
110
- all : python -m sphinx {[docs]sphinx_args} {posargs} -v -a -E -b html {[docs]docs_dir} {[docs]build_dir}{/}html
111
- live-!src : sphinx-autobuild {[docs]sphinx_args} {posargs} -b html {[docs]docs_dir} {[docs]build_dir}{/}live
112
- live-src : sphinx-autobuild {[docs]sphinx_args} {posargs} -a -E --watch {tox_root}{/}core{/}src{/}toga -b html {[docs]docs_dir} {[docs]build_dir}{/}live
102
+ !lint-!all-!live : python -m sphinx {[docs]sphinx_args} {posargs} --builder html {[docs]docs_dir} {[docs]build_dir}{/}html
103
+ lint : python -m sphinx {[docs]sphinx_args} {posargs} --builder spelling {[docs]docs_dir} {[docs]build_dir}{/}spell
104
+ lint : python -m sphinx {[docs]sphinx_args} {posargs} --builder linkcheck {[docs]docs_dir} {[docs]build_dir}{/}links
105
+ all : python -m sphinx {[docs]sphinx_args} {posargs} --verbose --write-all --fresh-env --builder html {[docs]docs_dir} {[docs]build_dir}{/}html
106
+ live-!src : sphinx-autobuild {[docs]sphinx_args} {posargs} --builder html {[docs]docs_dir} {[docs]build_dir}{/}live
107
+ live-src : sphinx-autobuild {[docs]sphinx_args} {posargs} --write-all --fresh-env --watch {tox_root}{/}core{/}src{/}toga --builder html {[docs]docs_dir} {[docs]build_dir}{/}live
0 commit comments