mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-19 15:25:31 +00:00
Adding indentation on .net detail template, hidden types
This commit is contained in:
parent
a05a85507a
commit
a3cea299dc
@ -3,8 +3,6 @@
|
||||
{{ obj.short_name }} {{ obj.type.title()}}
|
||||
{{ "=" * (obj.short_name|length + obj.type|length + 1) }}
|
||||
|
||||
.. dn:{{ obj.ref_type }}:: {{ obj.name }}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
.. contents::
|
||||
@ -60,15 +58,21 @@ GitHub
|
||||
|
||||
{% block content %}
|
||||
|
||||
.. dn:{{ obj.ref_type }}:: {{ obj.name }}
|
||||
|
||||
{%- macro display_type(item_type) %}
|
||||
{%- if item_type in obj.item_map %}
|
||||
|
||||
{{ item_type.title() }}
|
||||
{{ "-" * item_type|length }}
|
||||
|
||||
.. dn:{{ obj.ref_type }}:: {{ obj.name }}
|
||||
:noindex:
|
||||
:hidden:
|
||||
|
||||
{%- for obj_item in obj.item_map.get(item_type, []) %}
|
||||
{% macro render() %}{{ obj_item.render() }}{% endmacro %}
|
||||
{{ render()|indent(0) }}
|
||||
{{ render()|indent(4) }}
|
||||
{%- endfor %}
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
|
Loading…
Reference in New Issue
Block a user