mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-05 23:13:46 +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 -->
|
<!-- 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>
|
<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,
|
<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>
|
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."""
|
"""Updates docs markdown files if necessary."""
|
||||||
# pylint: disable=too-many-locals
|
# pylint: disable=too-many-locals
|
||||||
from efrotools import get_files_hash, run
|
from efrotools import get_files_hash, run
|
||||||
from efrotools.code import get_script_filenames
|
|
||||||
|
|
||||||
check = ('--check' in sys.argv)
|
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
|
# Generate a hash from all c/c++ sources under the python subdir
|
||||||
# as well as all python scripts.
|
# as well as all python scripts.
|
||||||
pysources = []
|
pysources = []
|
||||||
exts = ['.cc', '.c', '.h']
|
exts = ['.cc', '.c', '.h', '.py']
|
||||||
for root, _dirs, files in os.walk('src/ballistica/python'):
|
for basedir in [
|
||||||
for fname in files:
|
'src/ballistica/python', 'assets/src/data/scripts/bafoundation',
|
||||||
if any(fname.endswith(ext) for ext in exts):
|
'assets/src/data/scripts/ba'
|
||||||
pysources.append(os.path.join(root, fname))
|
]:
|
||||||
pysources += get_script_filenames(Path('.'))
|
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)
|
curhash = get_files_hash(pysources)
|
||||||
print('final2', curhash)
|
|
||||||
|
|
||||||
# Extract the current embedded hash.
|
# Extract the current embedded hash.
|
||||||
with open(docs_path) as infile:
|
with open(docs_path) as infile:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user