diff --git a/sphinxcontrib/devhelp/__init__.py b/sphinxcontrib/devhelp/__init__.py index 04b7248..09cc21f 100644 --- a/sphinxcontrib/devhelp/__init__.py +++ b/sphinxcontrib/devhelp/__init__.py @@ -93,7 +93,7 @@ def write_toc(node: nodes.Node, parent: etree.Element) -> None: parent.attrib['name'] = node.astext() matcher = NodeMatcher(addnodes.compact_paragraph, toctree=Any) - for node in tocdoc.traverse(matcher): # type: addnodes.compact_paragraph + for node in tocdoc.findall(matcher): # type: addnodes.compact_paragraph write_toc(node, chapters) # Index