From 24e48d4daea79c5207fa171b254c9d06da0d1317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Tue, 31 Aug 2021 18:31:40 +0000 Subject: [PATCH] [tox] Add docs-iterative command This is useful for iterative work with docs as it avoids trashing results from previous builds and thus saves time. Change-Id: Ic4f710725cbc2d85c28ca4e00c3a32a00a72c2da --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tox.ini b/tox.ini index 29f929fabd..defc25c854 100644 --- a/tox.ini +++ b/tox.ini @@ -50,6 +50,13 @@ deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf doc/build/html + {[testenv:docs-iterative]commands} + +[testenv:docs-iterative] +envdir = {toxworkdir}/docs +skip_install = {[testenv:docs]skip_install} +deps = {[testenv:docs]deps} +commands = sphinx-build -n -W --keep-going -b html doc/source doc/build/html whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt