Skip to content

Commit 8993451

Browse files
amcdnlmmalerba
authored andcommitted
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
1 parent 38d1ec2 commit 8993451

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tools/dgeni/templates/method.template.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
</th>
1010
</tr>
1111
</thead>
12+
{%- if method.description -%}
1213
<tr class="docs-api-method-description-row">
1314
<td colspan="2" class="docs-api-method-description-cell">
1415
{$ method.description | marked | safe $}
1516
</td>
1617
</tr>
18+
{%- endif -%}
1719

1820
{%- if method.params.length -%}
1921
<thead>

tools/dgeni/templates/property.template.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
<p class="docs-api-property-name">
2626
{$ property.name $}
2727
</p>
28-
<code class="docs-api-property-type">{$ property.type $}</code>
2928
</td>
30-
<td class="docs-api-property-description">{$ property.description | marked | safe $}</td>
29+
<td class="docs-api-property-description">
30+
<div class="docs-api-property-type">
31+
Type: <code>{$ property.type $}</code>
32+
</div>
33+
{$ property.description | marked | safe $}
34+
</td>
3135
</tr>

0 commit comments

Comments
 (0)