diff --git a/tools/batools/docs.py b/tools/batools/docs.py index a592f669..a6eafeff 100755 --- a/tools/batools/docs.py +++ b/tools/batools/docs.py @@ -320,16 +320,12 @@ def _run_sphinx( paths['static_dir'], paths['sphinx_cache_dir'], # input dir paths['build_dir'], # output dir - # enable after sphinx 7.3.0 is available on PyPi(pip) - # '--doctree-dir', paths['sphinx_cache_dir'], + '-d', + paths['sphinx_cache_dir'], # '-Q', #quiet now ], check=True, ) - # slows down build process when rebuilding, - # remove after sphinx 7.3.0 is available on PyPi(pip) - shutil.rmtree(paths['build_dir'] + '.doctrees') - duration = time.monotonic() - starttime print(f'Generated sphinx documentation in {duration:.1f}s.')