Skip to content

Commit b194452

Browse files
committed
fix: Support cross-references for API docs rendered in top-level index page
1 parent f9ec952 commit b194452

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mkdocstrings/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def run(self, parent: Element, blocks: MutableSequence[str]) -> None:
133133
el.extend(headings)
134134

135135
page = self._autorefs.current_page
136-
if page:
136+
if page is not None:
137137
for heading in headings:
138138
anchor = heading.attrib["id"]
139139
self._autorefs.register_anchor(page, anchor)

0 commit comments

Comments
 (0)