Sphinx extension to support docstrings in Numpy format
A utility that previews NumPy-style docstrings by converting them into reStructuredText and optionally writing them to disk using the target package.
@generates
from typing import Any, Mapping
def render_docstring(obj: Any, *, config: Mapping[str, object] | None = None) -> str:
"""Render the NumPy-format docstring for the given callable, class, or module into RST."""
def render_docstring_text(doc: str, *, name: str | None = None, config: Mapping[str, object] | None = None) -> str:
"""Render a raw NumPy-style docstring string into RST, optionally using a display name."""
def save_rendered(rst: str, path: str) -> None:
"""Write rendered RST to the given file path, overwriting existing content."""Parses NumPy-format docstrings and renders them into reStructuredText suitable for Sphinx and CLI previews.
tessl i tessl/pypi-numpydoc@1.9.0evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9