Load metadata from documentation directory. Args: docs_dir: Documentation directory path Returns: Metadata dictionary or None if not found
(self, docs_dir: Path)
| 60 | raise FileSystemError(f"Failed to load module tree: {e}") |
| 61 | |
| 62 | def load_metadata(self, docs_dir: Path) -> Optional[Dict[str, Any]]: |
| 63 | """ |
| 64 | Load metadata from documentation directory. |
| 65 | |
| 66 | Args: |
| 67 | docs_dir: Documentation directory path |
| 68 | |
| 69 | Returns: |
| 70 | Metadata dictionary or None if not found |
| 71 | """ |
| 72 | metadata_path = docs_dir / "metadata.json" |
| 73 | if not metadata_path.exists(): |
| 74 | return None |
| 75 | |
| 76 | try: |
| 77 | content = safe_read(metadata_path) |
| 78 | return json.loads(content) |
| 79 | except Exception: |
| 80 | # Non-critical, return None |
| 81 | return None |
| 82 | |
| 83 | def generate( |
| 84 | self, |