From 470a7c6bcd124f21620798cc86be60675fe1288a Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 6 Jul 2017 13:28:28 +0100 Subject: [PATCH] build(aio): use dedicated overview for decorator API docs --- .../transforms/templates/api/decorator.template.html | 2 +- .../templates/api/includes/decorator-overview.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 aio/tools/transforms/templates/api/includes/decorator-overview.html diff --git a/aio/tools/transforms/templates/api/decorator.template.html b/aio/tools/transforms/templates/api/decorator.template.html index 3cb13dcfbc..2460c3c4af 100644 --- a/aio/tools/transforms/templates/api/decorator.template.html +++ b/aio/tools/transforms/templates/api/decorator.template.html @@ -3,7 +3,7 @@ {% extends 'export-base.template.html' %} {% block details %} - {% include "includes/interface-overview.html" %} + {% include "includes/decorator-overview.html" %} {% include "includes/description.html" %} {$ memberHelper.renderMemberDetails(doc.members, 'metadata-members', 'metadata-member', 'Metadata Properties') $} {% endblock %} diff --git a/aio/tools/transforms/templates/api/includes/decorator-overview.html b/aio/tools/transforms/templates/api/includes/decorator-overview.html new file mode 100644 index 0000000000..66537da102 --- /dev/null +++ b/aio/tools/transforms/templates/api/includes/decorator-overview.html @@ -0,0 +1,10 @@ +{% import "lib/memberHelpers.html" as memberHelper -%} + +
+

Metadata Overview

+ + @{$ doc.name $}{$ doc.typeParams | escape $}({ {% if doc.members.length %}{% for member in doc.members %}{% if not member.internal %} + {$ memberHelper.renderMember(member) $}{% endif %}{% endfor %}{% endif %} + }) + +
\ No newline at end of file