chore(doc-gen): render decorators (annotations) for exported classes

Closes #3167
Closes #3221
This commit is contained in:
Peter Bacon Darwin
2015-07-28 11:23:01 +01:00
parent 03fc7fe8c2
commit 45cbc430e8
3 changed files with 39 additions and 0 deletions

View File

@ -10,6 +10,19 @@ p.location-badge.
:markdown
{$ doc.description | indent(2, true) $}
{%- if doc.decorators %}
.l-main-section
h2 Annotations
{%- for decorator in doc.decorators %}
.l-sub-section
h3.annotation {$ decorator.name $}
pre.prettyprint
code.
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(8, false) $}
{% endfor %}
{% endif -%}
{%- if doc.constructorDoc or doc.members.length -%}
.l-main-section
h2 Members