diff --git a/tox.ini b/tox.ini index 7c08c93f1..72a4c6256 100644 --- a/tox.ini +++ b/tox.ini @@ -49,6 +49,16 @@ commands_pre = commands = sphinx-build -W --keep-going docs/ docs/_build/html +[testenv:docs-live] +description = Live development: build the Sphinx docs with autoreloading enabled +deps = {[testenv:docs]deps} +commands_pre = + {[testenv:docs]commands_pre} +# https://github.com/sphinx-doc/sphinx-autobuild/issues/170 +change_dir = {tox_root}/docs +commands = + sphinx-autobuild ./ ./_build/html --watch . --port 8000 + [testenv:fmt] description = Apply coding style standards to code deps =