From 6410bee011961b232af3eef6ad3d2bd20726dc21 Mon Sep 17 00:00:00 2001 From: Eric Holscher Date: Fri, 24 Apr 2015 12:46:47 -0700 Subject: [PATCH] Fix hierarchy, and include object itself in it. --- autoapi/templates/dotnet/base_detail.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/autoapi/templates/dotnet/base_detail.rst b/autoapi/templates/dotnet/base_detail.rst index 2584d7d..8429b53 100644 --- a/autoapi/templates/dotnet/base_detail.rst +++ b/autoapi/templates/dotnet/base_detail.rst @@ -1,5 +1,3 @@ - - {% block title %} {{ obj.short_name }} {{ obj.type.title()}} @@ -13,7 +11,8 @@ :local: {% block summary %} - {%- if obj.summary %} +{%- if obj.summary %} + Summary ------- @@ -23,15 +22,18 @@ Summary {% endblock %} {% block inheritance %} - {%- if obj.inheritance %} + +{%- if obj.inheritance %} Inheritance Hierarchy --------------------- - {%- for item in inheritance %} + {%- for item in obj.inheritance %} * :dn:{{ item.ref_directive }}:`{{ item.id }}` {%- endfor %} +* :dn:{{ obj.ref_directive }}:`{{ obj.id}}` {%- endif %} + {% endblock %} {% block syntax %}