mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-08 07:10:31 +00:00
a4f798183c
Also fixed whitespace issues in templates.
26 lines
851 B
ReStructuredText
26 lines
851 B
ReStructuredText
{% if obj.display %}
|
|
.. py:{{ obj.type }}:: {{ obj.short_name }}{% if obj.args %}({{ obj.args }}){% endif %}
|
|
|
|
|
|
{% if obj.bases %}
|
|
Bases: {% for base in obj.bases %}:class:`{{ base }}`{% if not loop.last %}, {% endif %}{% endfor %}
|
|
|
|
|
|
{% endif %}
|
|
{% if obj.docstring %}
|
|
{{ obj.docstring|prepare_docstring|indent(3) }}
|
|
{% endif %}
|
|
{% set visible_classes = obj.classes|selectattr("display")|list %}
|
|
{% for klass in visible_classes %}
|
|
{{ klass.rendered|indent(3) }}
|
|
{% endfor %}
|
|
{% set visible_attributes = obj.attributes|selectattr("display")|list %}
|
|
{% for attribute in visible_attributes %}
|
|
{{ attribute.rendered|indent(3) }}
|
|
{% endfor %}
|
|
{% set visible_methods = obj.methods|selectattr("display")|list %}
|
|
{% for method in visible_methods %}
|
|
{{ method.rendered|indent(3) }}
|
|
{% endfor %}
|
|
{% endif %}
|