sklearn/doc/templates/base.rst

37 lines
748 B
ReStructuredText
Raw Normal View History

2024-08-05 09:32:03 +02:00
{{ objname | escape | underline(line="=") }}
{% if objtype == "module" -%}
.. automodule:: {{ fullname }}
{%- elif objtype == "function" -%}
.. currentmodule:: {{ module }}
.. autofunction:: {{ objname }}
.. minigallery:: {{ module }}.{{ objname }}
:add-heading: Gallery examples
:heading-level: -
{%- elif objtype == "class" -%}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
:members:
:inherited-members:
:special-members: __call__
.. minigallery:: {{ module }}.{{ objname }} {% for meth in methods %}{{ module }}.{{ objname }}.{{ meth }} {% endfor %}
:add-heading: Gallery examples
:heading-level: -
{%- else -%}
.. currentmodule:: {{ module }}
.. auto{{ objtype }}:: {{ objname }}
{%- endif -%}