(node: dict)
| 104 | |
| 105 | |
| 106 | def is_section_node(node: dict) -> bool: |
| 107 | kind = node.get("node_kind") |
| 108 | suffix = Path(str(node.get("source_file") or "")).suffix.lower() |
| 109 | return kind in ("heading", "page") and suffix in _MARKDOWN_SUFFIXES |
| 110 | |
| 111 | |
| 112 | def read_section(node: dict, root: Path, |
no test coverage detected