sphinx-autoapi/autoapi/templates/python/function.rst
Eric Holscher ffb2130b55 Implement prepare_docstring filter that wraps Sphinx's
This allows us to output docstrings in a reasonable fashion.
2016-11-04 15:17:50 -07:00

9 lines
183 B
ReStructuredText

{%- if obj.display %}
.. function:: {{ obj.name }}({{ obj.args|join(',') }})
{% if obj.docstring %}
{{ obj.docstring|prepare_docstring|indent(3) }}
{% endif %}
{% endif %}