build(aio): move "optional" and "default" to end of param description (#23062)

PR Close #23062
This commit is contained in:
Pete Bacon Darwin
2018-03-29 17:08:04 +01:00
committed by Igor Minar
parent cdd05bd2ca
commit 381da1af45
4 changed files with 17 additions and 11 deletions

View File

@ -21,11 +21,12 @@
{% if showType %}<td class="param-type"><code>{$ parameter.type $}</code></td>{% endif %}
<td class="param-description">
{% marked %}
{% if parameter.isOptional or parameter.defaultValue !== undefined %}Optional. Default is `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.{% endif %}
{% if parameter.description | trim %}{$ parameter.description $}
{% if parameter.description | trim %}{$ parameter.description $}
{% elseif not showType and parameter.type %}<p>Type: <code>{$ parameter.type $}</code>.</p>
{% endif %}
{% elseif not showType and parameter.type %}<p>Type: <code>{$ parameter.type $}</code>.</p>
{% endif %}
{% if parameter.isOptional or parameter.defaultValue !== undefined %}Optional. Default is `{$ parameter.defaultValue === undefined and 'undefined' or parameter.defaultValue $}`.{% endif %}
{% endmarked %}
</td>
</tr>{% endfor %}