chore(docs): adds types column and null checks for description (#7713)

* chore(docs): adds types column and null checks for description

* chore(nit): update per pr feedback
This commit is contained in:
Austin
2017-10-27 12:25:23 -05:00
committed by mmalerba
parent 38d1ec29ca
commit 8993451007
2 changed files with 8 additions and 2 deletions
@@ -9,11 +9,13 @@
</th>
</tr>
</thead>
{%- if method.description -%}
<tr class="docs-api-method-description-row">
<td colspan="2" class="docs-api-method-description-cell">
{$ method.description | marked | safe $}
</td>
</tr>
{%- endif -%}
{%- if method.params.length -%}
<thead>
+6 -2
View File
@@ -25,7 +25,11 @@
<p class="docs-api-property-name">
{$ property.name $}
</p>
<code class="docs-api-property-type">{$ property.type $}</code>
</td>
<td class="docs-api-property-description">{$ property.description | marked | safe $}</td>
<td class="docs-api-property-description">
<div class="docs-api-property-type">
Type: <code>{$ property.type $}</code>
</div>
{$ property.description | marked | safe $}
</td>
</tr>