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

@ -9,6 +9,13 @@ defined in {$ githubViewLink(doc) $}
</p>
<p>{$ doc.description | marked $}</p>
{%- if doc.decorators %}
<h2>Annotations</h2>
{%- for decorator in doc.decorators %}
<h3 class="annotation">@{$ decorator.name $}{$ paramList(decorator.arguments) $}</h3>
{% endfor %}
{% endif -%}
{%- if doc.constructorDoc or doc.members.length -%}
<h2>Members</h2>