mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-02 21:45:49 +08:00
Added doctree dirw
This commit is contained in:
parent
0abbee43f6
commit
ef2bb8574a
@ -320,16 +320,12 @@ def _run_sphinx(
|
|||||||
paths['static_dir'],
|
paths['static_dir'],
|
||||||
paths['sphinx_cache_dir'], # input dir
|
paths['sphinx_cache_dir'], # input dir
|
||||||
paths['build_dir'], # output dir
|
paths['build_dir'], # output dir
|
||||||
# enable after sphinx 7.3.0 is available on PyPi(pip)
|
'-d',
|
||||||
# '--doctree-dir', paths['sphinx_cache_dir'],
|
paths['sphinx_cache_dir'],
|
||||||
# '-Q', #quiet now
|
# '-Q', #quiet now
|
||||||
],
|
],
|
||||||
check=True,
|
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
|
duration = time.monotonic() - starttime
|
||||||
print(f'Generated sphinx documentation in {duration:.1f}s.')
|
print(f'Generated sphinx documentation in {duration:.1f}s.')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user