Added dummy modules and modules under tools to generation

This commit is contained in:
Loup-Garou911XD 2024-03-07 19:01:48 +05:30
parent 640565cdf8
commit 5f689c8016
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

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