Links
AI / Agents
gdtest-examples-rst-repro
Repro package for RST markup inside a numpy Examples section.
Source files
gdtest_examples_rst_repro/
__init__.py
"""Package reproducing RST-in-Examples rendering."""
__version__ = "0.1.0"
__all__ = ["compute"]
def compute(n: int) -> int:
"""
Compute something, see :func:`compute` and :math:`n^2`.
This BODY paragraph contains a role :func:`compute` and inline
math :math:`x_i` and an RST literal ``value``. These should be
converted (role -> link/code, math -> MathJax, literal -> code).
Examples
--------
>>> compute(2)
4
The PROSE below references :func:`compute` and inline math
:math:`n^2` and an RST literal ``value`` — the exact same
markup as the body above:
>>> compute(3)
9
"""
return n * nREADME.md
# gdtest-examples-rst-repro Repro package for RST markup inside a numpy Examples section.
great-docs.yml
parser: numpy