Skip to content

Commit

Permalink
chore(docs): adds types column and null checks for description (#7713)
Browse files Browse the repository at this point in the history
* chore(docs): adds types column and null checks for description

* chore(nit): update per pr feedback
  • Loading branch information
amcdnl authored and mmalerba committed Oct 27, 2017
1 parent 38d1ec2 commit 8993451
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tools/dgeni/templates/method.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
8 changes: 6 additions & 2 deletions tools/dgeni/templates/property.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit 8993451

Please sign in to comment.