MCPcopy Create free account
hub / github.com/FSoft-AI4Code/CodeWiki / load_module_tree

Function load_module_tree

codewiki/src/fe/visualise_docs.py:54–65  ·  view source on GitHub ↗

Load the module tree structure from module_tree.json.

(docs_folder: Path)

Source from the content-addressed store, hash-verified

52
53
54def 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
68def markdown_to_html(content: str) -> str:

Callers 2

initialize_globalsFunction · 0.85
mainFunction · 0.85

Calls 1

load_jsonMethod · 0.80

Tested by

no test coverage detected