build(aio): use dedicated overview for decorator API docs

This commit is contained in:
Peter Bacon Darwin 2017-07-06 13:28:28 +01:00 committed by Pete Bacon Darwin
parent 3abf208235
commit 470a7c6bcd
2 changed files with 11 additions and 1 deletions

View File

@ -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 %}

View File

@ -0,0 +1,10 @@
{% import "lib/memberHelpers.html" as memberHelper -%}
<section class="decorator-overview">
<h2>Metadata Overview</h2>
<code-example language="ts" hideCopy="true">
@{$ doc.name $}{$ doc.typeParams | escape $}({ {% if doc.members.length %}{% for member in doc.members %}{% if not member.internal %}
<a class="code-anchor" href="#{$ member.anchor $}">{$ memberHelper.renderMember(member) $}</a>{% endif %}{% endfor %}{% endif %}
})
</code-example>
</section>