Skip to content

Commit 5b0ba86

Browse files
authored
insert default children and default slug for associated toc node (#438)
1 parent 6d69b28 commit 5b0ba86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snooty/postprocess.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1747,6 +1747,8 @@ def find_toctree_nodes(
17471747
if entry.title
17481748
else None,
17491749
"options": {"project": entry.ref_project},
1750+
"children": [],
1751+
"slug": entry.ref_project,
17501752
}
17511753
ref_project_pair = (entry.title, entry.ref_project)
17521754
if ref_project_pair in external_nodes:

0 commit comments

Comments
 (0)