sphinx-autoapi/autoapi/templates/javascript/function.rst
2015-06-06 13:08:44 -07:00

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 %}