hide notes if none are found

This commit is contained in:
Eric Jimenez 2016-07-27 12:50:23 -04:00
parent fc1a9a6026
commit ca0acb6107
2 changed files with 4 additions and 8 deletions

View File

@ -1,10 +1,8 @@
{%- if doc.howToUse %}
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
div(flex="20" flex-xs="100")
h2(class="h2-api-docs") How to use
div(flex="80" flex-xs="100")
:marked
{%- if doc.howToUse %}
{$ doc.howToUse | indentForMarkdown(6) $}
{% else %}
*Not yet documented*
{% endif %}
{% endif %}

View File

@ -1,10 +1,8 @@
{%- if doc.whatItDoes %}
div(layout="row" layout-xs="column" class="row-margin ng-cloak")
div(flex="20" flex-xs="100")
h2(class="h2-api-docs") What it does
div(flex="80" flex-xs="100")
:marked
{%- if doc.whatItDoes %}
{$ doc.whatItDoes | indentForMarkdown(6) $}
{% else %}
*Not yet documented*
{% endif %}
{% endif %}