sphinx-tutorial/py-example/docs/source/_templates/autosummary/base.rst

17 lines
442 B
ReStructuredText

{% if objtype == 'property' %}
:orphan:
{% endif %}
{{ fullname | escape | underline}}
.. currentmodule:: {{ module }}
{% if objtype == 'property' %}
property
{% endif %}
.. auto{{ objtype }}:: {{ fullname | replace("numpy.", "numpy::") }}
{# In the fullname (e.g. `numpy.ma.MaskedArray.methodname`), the module name
is ambiguous. Using a `::` separator (e.g. `numpy::ma.MaskedArray.methodname`)
specifies `numpy` as the module name. #}