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

50 lines
985 B
ReStructuredText
Raw Normal View History

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