Load the module tree structure from module_tree.json.
(docs_folder: Path)
| 52 | |
| 53 | |
| 54 | def load_module_tree(docs_folder: Path) -> Optional[Dict]: |
| 55 | """Load the module tree structure from module_tree.json.""" |
| 56 | tree_file = docs_folder / "module_tree.json" |
| 57 | if not tree_file.exists(): |
| 58 | print(f"Warning: module_tree.json not found in {docs_folder}") |
| 59 | return None |
| 60 | |
| 61 | try: |
| 62 | return file_manager.load_json(tree_file) |
| 63 | except Exception as e: |
| 64 | print(f"Error loading module_tree.json: {e}") |
| 65 | return None |
| 66 | |
| 67 | |
| 68 | def markdown_to_html(content: str) -> str: |
no test coverage detected