sphinx-autoapi/autoapi/templates/python/module.rst
2017-06-29 10:45:54 -07:00

25 lines
366 B
ReStructuredText

{% if obj.docstring or obj.children %}
{{ obj.name }}
{{ "=" * obj.name|length }}
.. py:module:: {{ obj.name }}
{% endif %}
{%- if obj.docstring %}
.. autoapi-nested-parse::
{{ obj.docstring|prepare_docstring|indent(3) }}
{% endif %}
{% block content %}
{%- for obj_item in obj.children %}
{{ obj_item.rendered|indent(0) }}
{%- endfor %}
{% endblock %}