diff --git a/autoapi/templates/python/function.rst b/autoapi/templates/python/function.rst index fbfefa9..bc51e16 100644 --- a/autoapi/templates/python/function.rst +++ b/autoapi/templates/python/function.rst @@ -1,6 +1,7 @@ {% if obj.display %} .. function:: {{ obj.short_name }}({{ obj.args }}){% if obj.return_annotation is not none %} -> {{ obj.return_annotation }}{% endif %} + {% if obj.docstring %} {{ obj.docstring|prepare_docstring|indent(3) }} {% endif %}