Skip to content

Commit 34a9670

Browse files
GeeTransitAWhetter
authored andcommitted
Replace usage of deprecated docutils.nodes.Node.traverse
1 parent bea6e14 commit 34a9670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoapi/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def doctree_read(app, doctree):
156156
if app.env.docname == "index":
157157
all_docs = set()
158158
insert = True
159-
nodes = list(doctree.traverse(toctree))
159+
nodes = list(doctree.findall(toctree))
160160
toc_entry = f"{app.config.autoapi_root}/index"
161161
add_entry = (
162162
nodes

0 commit comments

Comments
 (0)