sphinx-autoapi/autoapi/templates/dotnet/base_list.rst

47 lines
870 B
ReStructuredText
Raw Normal View History

{% block title %}
{{ obj.short_name }} {{ obj.type.title() }}
{{ "=" * (obj.short_name|length + obj.type|length + 1) }}
{% endblock %}
{% block toc %}
{% if obj.children %}
.. toctree::
:hidden:
:maxdepth: 1
{% for item in obj.children|sort %}
2015-04-14 02:11:13 +00:00
/autoapi/{{ item.id.split('.')|join('/') }}/index
{%- endfor %}
{% endif %}
{% endblock %}
{% block content %}
2015-04-17 21:16:59 +00:00
{%- macro display_type(item_type) %}
.. rubric:: {{ item_type.title() }}
{%- for obj_item in obj.item_map.get(item_type, []) %}
{% macro render() %}{{ obj_item.summary }}{% endmacro %}
2015-04-17 21:16:59 +00:00
{{ obj_item.type }} :dn:{{ obj_item.ref_directive }}:`{{ obj_item.short_name }}`
{{ render()|indent(8) }}
2015-04-17 21:16:59 +00:00
{%- endfor %}
2015-04-17 21:16:59 +00:00
{%- endmacro %}
.. dn:{{ obj.ref_type }}:: {{ obj.name }}
2015-04-17 21:16:59 +00:00
{%- for item_type in obj.item_map.keys() %}
2015-04-17 21:16:59 +00:00
{{ display_type(item_type) }}
{%- endfor %}
2015-04-17 21:16:59 +00:00
{% endblock %}