api-builder: fix jade whitespace issues in the API templates

This commit is contained in:
Peter Bacon Darwin 2015-11-10 18:34:23 +00:00
parent bc7a17c4f6
commit 0f61ea288f
3 changed files with 4 additions and 10 deletions

View File

@ -32,11 +32,7 @@ p.location-badge.
h3.annotation
pre.prettyprint
code.
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(8, false) $}
{% endfor %}
{%- endif %}
@{$ decorator.name $}{$ paramList(decorator.arguments) | indent(10, false) $}{% endfor %}{% endif %}
{% if doc.constructorDoc or doc.members.length -%}
.l-main-section
h2 Members

View File

@ -5,11 +5,9 @@
{% block additional -%}
.l-main-section
h2 Selectors
.l-sub-section
{% for selector in doc.directiveOptions.selector.split(',') %}
.l-sub-section{% for selector in doc.directiveOptions.selector.split(',') %}
h3.selector
code {$ selector $}
{% endfor %}
code {$ selector $}{% endfor %}
{% if doc.inputs %}
.l-main-section

View File

@ -8,7 +8,7 @@ include ../../_util-fns
h2(class="function export")
pre.prettyprint
code.
export {$ doc.name $}{$ paramList(doc.parameters) | indent(4, true) | trim $}{$ returnType(doc.returnType) $}
export {$ doc.name $}{$ paramList(doc.parameters) | indent(8, true) | trim $}{$ returnType(doc.returnType) $}
p.location-badge.
exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }