mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-08 07:10:31 +00:00
15 lines
319 B
ReStructuredText
15 lines
319 B
ReStructuredText
{# Identention in this file is important #}
|
|
|
|
{% if is_method %}
|
|
{# Slice self off #}
|
|
.. method:: {{ obj.name.split('.')[-1] }}({{ args[1:]|join(',') }})
|
|
{% else %}
|
|
.. function:: {{ obj.name.split('.')[-1] }}({{ args|join(',') }})
|
|
{% endif %}
|
|
|
|
{% if obj.docstring %}
|
|
{{ obj.docstring|indent(3) }}
|
|
{% endif %}
|
|
|
|
|