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

51 lines
918 B
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' %}
/autoapi/{{ item.name.split('.')|join('/') }}/index
2015-04-24 19:37:00 +00:00
{% endif %}
{%- endfor %}
2015-04-24 17:10:51 +00:00
{% 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_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 %}
{% endblock %}