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

65 lines
1.1 KiB
ReStructuredText
Raw Normal View History

{% block title %}
{{ obj.name }} {{ obj.type.title() }}
{{ "=" * (obj.name|length + obj.type|length + 1) }}
{% endblock %}
{% block toc %}
{% if obj.children %}
.. toctree::
:hidden:
2015-04-24 19:37:00 +00:00
:maxdepth: 2
{% for item in obj.children|sort %}
2015-04-24 19:37:00 +00:00
{% if item.type != 'namespace' %}
2015-10-27 08:45:54 +00:00
{{ item.include_path }}
2015-04-24 19:37:00 +00:00
{% endif %}
2015-06-22 02:58:29 +00:00
{% endfor %}
2015-04-24 17:10:51 +00:00
{% endif %}
{% if obj.references %}
.. toctree::
:hidden:
:maxdepth: 2
{% for item in obj.references|sort %}
{% if item.type != 'namespace' %}
2015-10-27 08:45:54 +00:00
{{ item.include_path }}
{% endif %}
{% 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 %}
{{ obj_item.type }} :dn:{{ obj_item.ref_directive }}:`{{ obj_item.ref_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 %}
{% endblock %}