mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-06 09:20:27 +00:00
6aa8ced49f
This replaces a table that was constraining text area
38 lines
693 B
ReStructuredText
38 lines
693 B
ReStructuredText
{% block title %}
|
|
|
|
{{ object.short_name }} {{ object.type.title() }}
|
|
{{ "=" * (object.short_name|length + object.type|length + 1) }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block toc %}
|
|
|
|
{% if children %}
|
|
|
|
.. toctree::
|
|
:hidden:
|
|
|
|
{% for item in children %}
|
|
/autoapi/{{ item.id.split('.')|join('/') }}/index
|
|
{%- endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block table %}
|
|
|
|
.. dn:{{ object.ref_type }}:: {{ object.name }}
|
|
|
|
{% if object.children %}
|
|
|
|
{%- for item in object.children|sort %}
|
|
{% macro render() %}{{ item.summary }}{% endmacro %}
|
|
{{ item.type }} :dn:{{ item.ref_directive }}:`{{ item.short_name }}`
|
|
{{ render()|indent(8) }}
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|