mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-31 03:39:04 +08:00
Added dummy modules and modules under tools to generation
This commit is contained in:
parent
640565cdf8
commit
5f689c8016
@ -20,7 +20,8 @@ sys.path.append(os.path.abspath(ballistica_root+assets_dirs['efro_tools']))
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
html_theme = 'furo' # python_docs_theme, groundwork, furo
|
||||
# for more themes visit https://sphinx-themes.org/
|
||||
html_theme = 'furo' # python_docs_theme, groundwork, furo
|
||||
# html_logo = ballistica_root + 'build/assets/ba_data/textures/logo_preview.png' # need a smaller img
|
||||
|
||||
|
||||
|
||||
@ -243,18 +243,19 @@ def _run_sphinx() -> None:
|
||||
shutil.copytree(template_dir, sphinx_apidoc_out, dirs_exist_ok= True)
|
||||
|
||||
starttime = time.monotonic()
|
||||
|
||||
subprocess.run(['sphinx-apidoc',
|
||||
|
||||
apidoc_cmd = ['sphinx-apidoc',
|
||||
'-f', # Force overwriting of any existing generated files.
|
||||
'-H', 'Bombsquad', # project
|
||||
'-A','Efroemling', # author
|
||||
'-V', str(version), # version
|
||||
'-R', str(buildnum), # release
|
||||
# '--templatedir', template_dir,
|
||||
'-o', sphinx_apidoc_out,
|
||||
assets_dirs['ba_data'], ],
|
||||
check=True)
|
||||
|
||||
'-o', sphinx_apidoc_out,
|
||||
]
|
||||
subprocess.run(apidoc_cmd + [assets_dirs['ba_data']] , check=True)
|
||||
subprocess.run(apidoc_cmd + [assets_dirs['dummy_modules']], check=True)
|
||||
subprocess.run(apidoc_cmd + [assets_dirs['efro_tools']], check=True)
|
||||
|
||||
subprocess.run( ['make', 'html'], check = True, cwd= sphinx_apidoc_out)
|
||||
shutil.copytree(sphinx_apidoc_out + '_build/html/', build_dir, dirs_exist_ok=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user