This commit is contained in:
Andreas Wilms
2025-09-08 19:05:42 +02:00
commit d85c1c86df
153 changed files with 140246 additions and 0 deletions

20
docu/write_modules.py Normal file
View File

@@ -0,0 +1,20 @@
import glob, os
MODULES = glob.glob("src/silkmoth/*.py")
OUT_DIR = "docu/pages"
os.makedirs(OUT_DIR, exist_ok=True)
for path in MODULES:
name = os.path.splitext(os.path.basename(path))[0]
if name == "__init__":
continue
doc_path = os.path.join(OUT_DIR, f"{name}.md")
with open(doc_path, "w") as f:
f.write("::: silkmoth." + name + "\n")
f.write(" rendering:\n")
f.write(" show_signature: true\n")
f.write(" show_source: true\n")