mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
Fix default_theme to render all parameter properties. - Split the parameter property template portion into its own partial. - Have the new partial recursively call itself if there are sub-properties.
16 lines
588 B
Plaintext
16 lines
588 B
Plaintext
<tr>
|
|
<td class='break-word'><span class='code bold'><%- property.name %></span> <code class='quiet'><%= formatType(property.type) %></code>
|
|
<% if (property.default) { %>
|
|
(default <code><%- property.default %></code>)
|
|
<% } %></td>
|
|
<td class='break-word'><span><%= md(property.description, true) %></span></td>
|
|
</tr>
|
|
<% if(property.properties && property.properties.length) { %>
|
|
<% property.properties.forEach(function(childProperty) { %>
|
|
<%= renderParamProperty({
|
|
property: childProperty,
|
|
renderParamProperty: renderParamProperty
|
|
}) %>
|
|
<% }) %>
|
|
<% } %>
|