From 4e2d5ccdfb07929d2c9c988443ad6aa018b2ea7d Mon Sep 17 00:00:00 2001 From: Anthony Johnson Date: Sun, 1 May 2016 19:27:20 -0700 Subject: [PATCH] Use short name for reference link name As the parent block is a namespace declaration, we can use nesting to imply the namespace. This removes the namespace from the object name and matches what we do on other pages. --- autoapi/templates/dotnet/base_list.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoapi/templates/dotnet/base_list.rst b/autoapi/templates/dotnet/base_list.rst index 985de1a..7f9fd8f 100644 --- a/autoapi/templates/dotnet/base_list.rst +++ b/autoapi/templates/dotnet/base_list.rst @@ -48,7 +48,7 @@ {%- 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_name }}` + {{ obj_item.type }} :dn:{{ obj_item.ref_directive }}:`{{ obj_item.ref_short_name }}` .. object: type={{ obj_item.type }} name={{ obj_item.ref_name }} {{ render()|indent(8) }}