MCPcopy Index your code
hub / github.com/karpathy/reader3 / TOCEntry

Class TOCEntry

reader3.py:34–40  ·  view source on GitHub ↗

Represents a logical entry in the navigation sidebar.

Source from the content-addressed store, hash-verified

32
33@dataclass
34class 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

Callers 2

parse_toc_recursiveFunction · 0.85
get_fallback_tocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected