Skip to content

Conversation

gmilde
Copy link

@gmilde gmilde commented Aug 28, 2025

"section" elements can only be children of "document" or "section" elements, not "sidebar".
Cf. https://docutils.sourceforge.io/docs/ref/doctree.html#section

Purpose

Prevent users of the function from producing invalid documents by giving accurate information.

References

"section" elements can only be children of "document" or "section"
elements, not "sidebar".
Cf. https://docutils.sourceforge.io/docs/ref/doctree.html#section
@gmilde
Copy link
Author

gmilde commented Aug 28, 2025

This is a re-make of my last attempt, fixing a typo in the comment description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

misleading docstring for sphinx.util.parsing.nested_parse_to_nodes()
1 participant