sphinx-autoapi/autoapi/templates/python/class.rst
2015-04-20 22:54:32 -07:00

21 lines
346 B
ReStructuredText

.. class:: {{ object.name }}({{ object.args|join(',') }})
{% if object.docstring %}
.. rubric:: Summary
{{ object.docstring|indent(3) }}
{% endif %}
{% if methods %}
{% for method in methods %}
{% macro render() %}{{ method.render() }}{% endmacro %}
{{ render()|indent(3) }}
{%- endfor %}
{% endif %}