Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion jupyterlite_sphinx/_try_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,20 @@ def _process_literal_blocks(md_text):
_next_section_pattern = re.compile(
"|".join(
[
rf".. (rubric|admonition)::\s*{header}"
rf"\.\. (rubric|admonition)::\s*{header}"
for header in _non_example_docstring_section_headers
]
# If examples section is last, processed by numpydoc may appear at end.
+ [r"\!\! processed by numpydoc \!\!"]
# Attributes section sometimes has no directive.
+ [r":Attributes:"]
# The See Also section is also a heading that needs to be escaped. This
# showed up in the SymPy documentation which used an older version of
# numpydoc that did not enforce ordering, and modern numpydoc did, hence
# it was not noticed. For future reference, see:
# https://github.com/jupyterlite/jupyterlite-sphinx/pull/251
# https://github.com/sympy/sympy/pull/27419
+ [r"\.\. seealso::"]
)
)

Expand Down
Loading