sphinx-autoapi/autoapi/templates/python/class.rst

33 lines
610 B
ReStructuredText
Raw Normal View History

{{ obj.name }}
{{ "-" * obj.name|length }}
2015-04-23 22:37:02 +00:00
.. py:class:: {{ obj.name }}{% if obj.args %}({{ obj.args|join(',') }}){% endif %}
2015-04-01 00:01:41 +00:00
{%- if obj.docstring %}
2015-04-01 00:01:41 +00:00
.. rubric:: Summary
{{ obj.docstring|indent(3) }}
2015-04-01 00:01:41 +00:00
{% endif %}
{%- if obj.methods %}
2015-04-01 00:01:41 +00:00
{%- for method in obj.methods %}
2015-04-01 00:01:41 +00:00
{% macro render() %}{{ method.render() }}{% endmacro %}
{{ render()|indent(3) }}
{%- endfor %}
{% endif %}
{% block content %}
{%- for obj_item in obj.children %}
{%- macro render() %}{{ obj_item.render() }}{% endmacro %}
{{ render()|indent(3) }}
{%- endfor %}
{% endblock %}