Skip to content

Commit 7f035c1

Browse files
DirectXMan12frozencemetery
authored andcommitted
Make requires_rfc.py properly set parents of nodes
The requires_rfc.py docs extension was not properly setting the parent node when adding child text nodes. This caused a hiccup in newer versions of Sphinx, meaning we could not generate new documentation. This commit should fix that by using methods to clear and set the children, as opposed to directly setting the child list.
1 parent 8310103 commit 7f035c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/custom_extensions/requires_rfc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def __call__(self, name, rawtext, text, lineno, inliner,
4848

4949
title_node = nodes.Text(ext_title, ext_title)
5050

51-
ref_nodes[0].children = [title_node]
51+
ref_nodes[0].clear()
52+
ref_nodes[0].append(title_node)
5253

5354
middle_parts = ref_nodes
5455

0 commit comments

Comments
 (0)