|
24 | 24 | <%= formatType(section.type) %>
|
25 | 25 | </p>
|
26 | 26 | <% } %>
|
27 |
| - <% if (section.augments) { %> |
| 27 | + <% if (section.augments.length) { %> |
28 | 28 | <p>
|
29 | 29 | Extends
|
30 | 30 | <% if (section.augments) { %>
|
|
35 | 35 | </p>
|
36 | 36 | <% } %>
|
37 | 37 |
|
| 38 | + <% if (section.deprecated) { %><div>Deprecated: <%= md(section.deprecated, true) %></div><% }%> |
38 | 39 | <% if (section.version) { %><div>Version: <%- section.version %></div><% }%>
|
39 | 40 | <% if (section.license) { %><div>License: <%- section.license %></div><% }%>
|
40 | 41 | <% if (section.author) { %><div>Author: <%- section.author %></div><% }%>
|
41 |
| - <% if (section.copyright) { %><div>Copyright: <%- section.copyright %></div><% }%> |
| 42 | + <% if (section.copyright) { %><div>Copyright: <%= md(section.copyright, true) %></div><% }%> |
42 | 43 | <% if (section.since) { %><div>Since: <%- section.since %></div><% }%>
|
43 | 44 |
|
44 |
| - <% if (section.params) { %> |
| 45 | + <% if (section.params.length) { %> |
45 | 46 | <div class='py1 quiet mt1 prose-big'>Parameters</div>
|
46 | 47 | <div class='prose'>
|
47 | 48 | <% section.params.forEach(function(param) { %>
|
|
81 | 82 | </div>
|
82 | 83 | <% } %>
|
83 | 84 |
|
84 |
| - <% if (section.properties) { %> |
| 85 | + <% if (section.properties.length) { %> |
85 | 86 | <div class='py1 quiet mt1 prose-big'>Properties</div>
|
86 | 87 | <div>
|
87 | 88 | <% section.properties.forEach(function(property) { %>
|
|
108 | 109 | </div>
|
109 | 110 | <% } %>
|
110 | 111 |
|
111 |
| - <% if (section.returns) { %> |
| 112 | + <% if (section.returns.length) { %> |
112 | 113 | <% section.returns.forEach(function(ret) { %>
|
113 | 114 | <div class='py1 quiet mt1 prose-big'>Returns</div>
|
114 | 115 | <code><%= formatType(ret.type) %></code><% if (ret.description) { %>:
|
|
117 | 118 | <% }) %>
|
118 | 119 | <% } %>
|
119 | 120 |
|
120 |
| - <% if (section.throws) { %> |
| 121 | + <% if (section.throws.length) { %> |
121 | 122 | <div class='py1 quiet mt1 prose-big'>Throws</div>
|
122 | 123 | <ul>
|
123 | 124 | <% section.throws.forEach(function(throws) { %>
|
|
126 | 127 | </ul>
|
127 | 128 | <% } %>
|
128 | 129 |
|
129 |
| - <% if (section.examples) { %> |
| 130 | + <% if (section.examples.length) { %> |
130 | 131 | <div class='py1 quiet mt1 prose-big'>Example</div>
|
131 | 132 | <% section.examples.forEach(function(example) { %>
|
132 | 133 | <% if (example.caption) { %><p><%= md(example.caption) %></p><% } %>
|
|
0 commit comments