From dbe6ae8ace914637f068467295d3267f9e8d91fd Mon Sep 17 00:00:00 2001 From: Eleftherios Zisis Date: Fri, 5 Apr 2024 14:52:39 +0200 Subject: [PATCH] Fix docs --- tox.ini | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tox.ini b/tox.ini index 34b0b330..8b4e2b74 100644 --- a/tox.ini +++ b/tox.ini @@ -51,15 +51,21 @@ commands = black . [testenv:docs] -changedir = doc extras = docs commands = - # remove autosummary output - rm -rf {toxinidir}/doc/source/_neurom_build - make clean - make html SPHINXOPTS=-W + # remove autosummary output and cleanup + rm -rf {toxinidir}/doc/source/_neurom_build {toxinidir}/doc/build/* + sphinx-build -b doctest \ + {toxinidir}/doc/source \ + {toxworkdir}/doc/build/doctest \ + -d {toxinidir}/doc/build/doctrees \ + -W + sphinx-build -b html \ + {toxinidir}/doc/source \ + {toxinidir}/doc/build/html \ + -d {toxinidir}/doc/build/doctrees \ + -W allowlist_externals = - make rm [testenv:tutorial]