mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-24 16:06:51 +08:00
More docs generation cleanup
This commit is contained in:
parent
cd601f3a23
commit
6674c526ce
@ -1,5 +1,5 @@
|
||||
<!-- THIS FILE IS AUTO GENERATED; DO NOT EDIT BY HAND -->
|
||||
<!--DOCSHASH=fa97ca3a49ae39f71c1214b8849d8291-->
|
||||
<!--DOCSHASH=f593a39e3a39b53bf74c893acf8c746b-->
|
||||
<h4><em>last updated on 2019-11-12 for Ballistica version 1.5.0 build 20001</em></h4>
|
||||
<p>This page documents the Python classes and functions in the 'ba' module,
|
||||
which are the ones most relevant to modding in Ballistica. If you come across something you feel should be included here or could be better explained, please <a href="mailto:support@froemling.net">let me know</a>. Happy modding!</p>
|
||||
|
||||
@ -647,7 +647,6 @@ def update_docs_md() -> None:
|
||||
"""Updates docs markdown files if necessary."""
|
||||
# pylint: disable=too-many-locals
|
||||
from efrotools import get_files_hash, run
|
||||
from efrotools.code import get_script_filenames
|
||||
|
||||
check = ('--check' in sys.argv)
|
||||
|
||||
@ -656,14 +655,17 @@ def update_docs_md() -> None:
|
||||
# Generate a hash from all c/c++ sources under the python subdir
|
||||
# as well as all python scripts.
|
||||
pysources = []
|
||||
exts = ['.cc', '.c', '.h']
|
||||
for root, _dirs, files in os.walk('src/ballistica/python'):
|
||||
for fname in files:
|
||||
if any(fname.endswith(ext) for ext in exts):
|
||||
pysources.append(os.path.join(root, fname))
|
||||
pysources += get_script_filenames(Path('.'))
|
||||
exts = ['.cc', '.c', '.h', '.py']
|
||||
for basedir in [
|
||||
'src/ballistica/python', 'assets/src/data/scripts/bafoundation',
|
||||
'assets/src/data/scripts/ba'
|
||||
]:
|
||||
assert os.path.isdir(basedir)
|
||||
for root, _dirs, files in os.walk(basedir):
|
||||
for fname in files:
|
||||
if any(fname.endswith(ext) for ext in exts):
|
||||
pysources.append(os.path.join(root, fname))
|
||||
curhash = get_files_hash(pysources)
|
||||
print('final2', curhash)
|
||||
|
||||
# Extract the current embedded hash.
|
||||
with open(docs_path) as infile:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user