From a3cea299dc49b5bfa3a7437d4f8fc9ef4d70d56c Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Fri, 24 Apr 2015 15:04:10 -0700 Subject: [PATCH] Adding indentation on .net detail template, hidden types --- autoapi/templates/dotnet/base_detail.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/autoapi/templates/dotnet/base_detail.rst b/autoapi/templates/dotnet/base_detail.rst index 4d98a00..199327e 100644 --- a/autoapi/templates/dotnet/base_detail.rst +++ b/autoapi/templates/dotnet/base_detail.rst @@ -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 %}