mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-10 01:10:27 +00:00
14 lines
325 B
ReStructuredText
14 lines
325 B
ReStructuredText
{%- if obj.display %}
|
|
|
|
{%- if is_method %}
|
|
{# Slice self off #}
|
|
.. method:: {{ obj.name.split('.')[-1] }}({{ obj.args[1:]|join(',') }})
|
|
{% else %}
|
|
.. function:: {{ obj.name.split('.')[-1] }}({{ obj.args|join(',') }})
|
|
{% endif %}
|
|
|
|
{%- if obj.docstring %}
|
|
{{ obj.docstring.strip()|indent(3) }}
|
|
{% endif %}
|
|
|
|
{% endif %} |