Add multi-type modules to all headings on TOC

pull/190/head
Patrick Robertson 2025-02-11 19:46:57 +00:00
rodzic 1ee7981c6e
commit d8f47ff9e4
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -76,11 +76,12 @@ def generate_module_docs():
# add a link to the autodoc refs
readme_str += f"\n[API Reference](../../../autoapi/{module.name}/index)\n"
# create the module.type folder, use the first type just for where to store the file
type_folder = SAVE_FOLDER / module.type[0]
type_folder.mkdir(exist_ok=True)
with open(type_folder / f"{module.name}.md", "w") as f:
print("writing", SAVE_FOLDER)
f.write(readme_str)
for type in manifest['type']:
type_folder = SAVE_FOLDER / type
type_folder.mkdir(exist_ok=True)
with open(type_folder / f"{module.name}.md", "w") as f:
print("writing", SAVE_FOLDER)
f.write(readme_str)
generate_index(modules_by_type)
with open(SAVE_FOLDER / "configs_cheatsheet.md", "w") as f: