Sphinx extension to support docstrings in Numpy format
52
Evaluation — 52%
↑ 1.13xAgent success when using this tile
A helper that wires a documentation build to keep repeated citations unique and remove broken backreferences when turning NumPy-style docstrings into doctrees.
@generates
from typing import Mapping, Sequence
from sphinx.application import Sphinx
from docutils.nodes import document
def configure_citation_handling(app: Sphinx) -> None:
"""
Register the handlers on the Sphinx app to deduplicate citations and clean backreferences during the build.
"""
def build_processed_doctrees(app: Sphinx, docstrings: Mapping[str, str]) -> Sequence[document]:
"""
Create doctrees for the provided objects (mapping from object name to docstring),
ensuring citation labels are unique per object and backreferences are cleaned.
"""Provides docstring-to-doctree processing with citation relabeling and backreference cleanup needed by this helper.
Install with Tessl CLI
npx tessl i tessl/pypi-numpydocevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9