Added doctree dirw

This commit is contained in:
Loup-Garou911XD 2024-03-28 16:10:01 +05:30
parent 0abbee43f6
commit ef2bb8574a

View File

@ -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.')