From a2b50ec8c9eb41fcc2de451149d56e271f0eb12e Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Mon, 11 Sep 2017 13:55:52 +0100 Subject: [PATCH] build(aio): do not render annotations block for directives --- aio/tools/transforms/templates/api/class.template.html | 2 +- aio/tools/transforms/templates/api/directive.template.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/aio/tools/transforms/templates/api/class.template.html b/aio/tools/transforms/templates/api/class.template.html index aaa12e3c00..28f952c1b2 100644 --- a/aio/tools/transforms/templates/api/class.template.html +++ b/aio/tools/transforms/templates/api/class.template.html @@ -9,6 +9,6 @@ {$ memberHelpers.renderMemberDetails(doc.statics, 'static-members', 'static-member', 'Static Members') $} {% if doc.constructorDoc %}{$ memberHelpers.renderMemberDetails([doc.constructorDoc], 'constructors', 'constructor', 'Constructor') $}{% endif %} {$ memberHelpers.renderMemberDetails(doc.members, 'instance-members', 'instance-member', 'Members') $} -{% include "includes/annotations.html" %} +{% block annotations %}{% include "includes/annotations.html" %}{% endblock %} {% endblock %} diff --git a/aio/tools/transforms/templates/api/directive.template.html b/aio/tools/transforms/templates/api/directive.template.html index 2858e9cd5b..79c9fc8752 100644 --- a/aio/tools/transforms/templates/api/directive.template.html +++ b/aio/tools/transforms/templates/api/directive.template.html @@ -9,3 +9,5 @@ {$ directiveHelper.renderBindings(doc.outputs, 'outputs', 'output', 'Outputs') $} {% include "includes/export-as.html" %} {% endblock %} + +{% block annotations %}{% endblock %}