@@ -42,29 +42,25 @@ commands =
42
42
[docs]
43
43
docs_dir = {tox_root}{/}docs
44
44
build_dir = {[docs]docs_dir}{/}_build
45
- # replace when Sphinx>=7.3 and Python 3.8 is dropped:
46
- # -T => --show-traceback
47
- # -W => --fail-on-warning
48
- # -b => --builder
49
- # -v => --verbose
50
- # -a => --write-all
51
- # -E => --fresh-env
52
- sphinx_args = -T -W --keep-going --jobs auto
45
+ sphinx_args = --show-traceback --fail-on-warning --keep-going --jobs auto
53
46
54
47
[testenv:docs{,-lint,-all,-live,-live-src}]
48
+ # Docs are always built on Python 3.12. See also the RTD config and contribution docs.
49
+ base_python = py312
50
+ # give sphinx-autobuild time to shutdown http server
51
+ suicide_timeout = 1
55
52
package = wheel
56
53
wheel_build_env = .pkg
57
- change_dir = docs
58
54
extras = docs
59
55
passenv =
60
56
# On macOS M1, you need to manually set the location of the PyEnchant
61
57
# library:
62
58
# export PYENCHANT_LIBRARY_PATH=/opt/homebrew/lib/libenchant-2.2.dylib
63
59
PYENCHANT_LIBRARY_PATH
64
60
commands =
65
- !lint-!all-!live : python -m sphinx {[docs]sphinx_args} {posargs} -b html {[docs]docs_dir} {[docs]build_dir}{/}html
66
- lint : python -m sphinx {[docs]sphinx_args} {posargs} -b spelling {[docs]docs_dir} {[docs]build_dir}{/}spell
67
- lint : python -m sphinx {[docs]sphinx_args} {posargs} -b linkcheck {[docs]docs_dir} {[docs]build_dir}{/}links
68
- all : python -m sphinx {[docs]sphinx_args} {posargs} -v -a -E -b html {[docs]docs_dir} {[docs]build_dir}{/}html
69
- live-!src : sphinx-autobuild {[docs]sphinx_args} {posargs} -b html {[docs]docs_dir} {[docs]build_dir}{/}live
70
- live-src : sphinx-autobuild {[docs]sphinx_args} {posargs} -a -E --watch {tox_root}{/}src{/}rubicon{/}objc -b html {[docs]docs_dir} {[docs]build_dir}{/}live
61
+ !lint-!all-!live : python -m sphinx {[docs]sphinx_args} {posargs} --builder html {[docs]docs_dir} {[docs]build_dir}{/}html
62
+ lint : python -m sphinx {[docs]sphinx_args} {posargs} --builder spelling {[docs]docs_dir} {[docs]build_dir}{/}spell
63
+ lint : python -m sphinx {[docs]sphinx_args} {posargs} --builder linkcheck {[docs]docs_dir} {[docs]build_dir}{/}links
64
+ all : python -m sphinx {[docs]sphinx_args} {posargs} --verbose --write-all --fresh-env --builder html {[docs]docs_dir} {[docs]build_dir}{/}html
65
+ live-!src : sphinx-autobuild {[docs]sphinx_args} {posargs} --builder html {[docs]docs_dir} {[docs]build_dir}{/}live
66
+ live-src : sphinx-autobuild {[docs]sphinx_args} {posargs} --write-all --fresh-env --watch {tox_root}{/}src{/}rubicon{/}objc --builder html {[docs]docs_dir} {[docs]build_dir}{/}live
0 commit comments