Skip to content

Commit

Permalink
Run sphinx-autobuild via tox -e docs-live[-src]
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed Feb 16, 2024
1 parent 71cd314 commit 0959f55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ sphinx_args = -W --keep-going -j auto
# -d: use tox's temp dir for caching
sphinx_args_extra = {[docs]sphinx_args} -v -E -T -a -d {envtmpdir}/doctrees

[testenv:docs{,-lint,-all}]
[testenv:docs{,-lint,-all,-live,-live-src}]
skip_install = True
change_dir = docs
deps =
./core[docs]
deps = ./core[docs]
passenv =
# On macOS M1, you need to manually set the location of the PyEnchant
# library:
Expand All @@ -64,6 +63,8 @@ commands =
lint : python -m sphinx {[docs]sphinx_args_extra} -b spelling . {[docs]build_dir}/spell
lint : python -m sphinx {[docs]sphinx_args_extra} -b linkcheck . {[docs]build_dir}/links
all : python -m sphinx {[docs]sphinx_args_extra} -b html . {[docs]build_dir}/html
live-!src : sphinx-autobuild {[docs]sphinx_args} -b html . {[docs]build_dir}/html
live-src : sphinx-autobuild {[docs]sphinx_args_extra} -b html . {[docs]build_dir}/html --watch ../core/src/toga/

[testenv:package]
skip_install = True
Expand Down

0 comments on commit 0959f55

Please sign in to comment.