Represents a logical entry in the navigation sidebar.
| 32 | |
| 33 | @dataclass |
| 34 | class TOCEntry: |
| 35 | """Represents a logical entry in the navigation sidebar.""" |
| 36 | title: str |
| 37 | href: str # original href (e.g., 'part01.html#chapter1') |
| 38 | file_href: str # just the filename (e.g., 'part01.html') |
| 39 | anchor: str # just the anchor (e.g., 'chapter1'), empty if none |
| 40 | children: List['TOCEntry'] = field(default_factory=list) |
| 41 | |
| 42 | |
| 43 | @dataclass |
no outgoing calls
no test coverage detected