chore(doc-gen): don't show Members heading if no members

Closes #1248
This commit is contained in:
Peter Bacon Darwin 2015-04-07 09:23:07 +02:00
parent b7eea4f577
commit 1a99090b45
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
<p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a></p> <p class="module">exported from <a href="/{$ doc.moduleDoc.path $}">{$ doc.moduleDoc.id $}</a></p>
<p>{$ doc.description | marked $}</p> <p>{$ doc.description | marked $}</p>
{%- if doc.constructorDoc or doc.members.length -%}
<h2>Members</h2> <h2>Members</h2>
{%- if doc.constructorDoc %} {%- if doc.constructorDoc %}
<h3>{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h3> <h3>{$ doc.constructorDoc.name $}{$ paramList(doc.constructorDoc.params) $}</h3>
@ -15,5 +16,6 @@
<h3>{$ member.name $}{$ paramList(member.params) $}</h3> <h3>{$ member.name $}{$ paramList(member.params) $}</h3>
<p>{$ member.description | marked $}</p> <p>{$ member.description | marked $}</p>
{% endfor %} {% endfor %}
{%- endif -%}
{% endblock %} {% endblock %}