From 6aa8ced49f66074cbb2cb3ead0f1d509ee8ed815 Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Tue, 14 Apr 2015 18:37:19 -0700 Subject: [PATCH] Add dl based listing of namespace objects with truncated names This replaces a table that was constraining text area --- autoapi/templates/dotnet/base_list.rst | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/autoapi/templates/dotnet/base_list.rst b/autoapi/templates/dotnet/base_list.rst index 6b2a1d8..2f5979d 100644 --- a/autoapi/templates/dotnet/base_list.rst +++ b/autoapi/templates/dotnet/base_list.rst @@ -3,8 +3,6 @@ {{ object.short_name }} {{ object.type.title() }} {{ "=" * (object.short_name|length + object.type|length + 1) }} -.. dn:{{ object.ref_type }}:: {{ object.name }} - {% endblock %} {% block toc %} @@ -24,19 +22,15 @@ {% block table %} +.. dn:{{ object.ref_type }}:: {{ object.name }} + {% if object.children %} -.. list-table:: Members - :widths: 20, 80 - :header-rows: 1 - - * - Class - - Description - {%- for item in object.children|sort %} - {% macro render() %}{{ item.summary }}{% endmacro %} - * - :dn:{{ item.ref_directive }}:`{{ item.id }}` - - {{ render()|indent(7) }} - {% endfor %} + {%- for item in object.children|sort %} + {% macro render() %}{{ item.summary }}{% endmacro %} + {{ item.type }} :dn:{{ item.ref_directive }}:`{{ item.short_name }}` + {{ render()|indent(8) }} + {% endfor %} {% endif %}