diff --git a/.idea/dictionaries/ericf.xml b/.idea/dictionaries/ericf.xml
index 96f5078e..893516a5 100644
--- a/.idea/dictionaries/ericf.xml
+++ b/.idea/dictionaries/ericf.xml
@@ -1394,6 +1394,7 @@
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 let me know. Happy modding!
diff --git a/tools/snippets b/tools/snippets index 1c000d14..c0a0b6a5 100755 --- a/tools/snippets +++ b/tools/snippets @@ -665,6 +665,11 @@ def update_docs_md() -> None: docs_path = 'docs/ba_module.md' + # We store the hash in a separate file that only exists on private + # so public isn't full of constant hash change commits. + # (don't care so much on private) + docs_hash_path = 'docs/ba_module_hash' + # Generate a hash from all c/c++ sources under the python subdir # as well as all python scripts. pysources = [] @@ -683,11 +688,13 @@ def update_docs_md() -> None: curhash = get_files_hash(pysources) # Extract the current embedded hash. - with open(docs_path) as infile: - lines = infile.readlines() - hashlines = [l for l in lines if '\n' - f'\n') + docs + docs = ( + '\n' + # f'\n' + ) + docs with open(docs_path, 'w') as outfile: outfile.write(docs) + with open(docs_hash_path, 'w') as outfile: + outfile.write(curhash) print(f'{docs_path} is up to date.')