Skip to content

Commit

Permalink
Docs table rendering change/cleanup (#3579)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns authored Oct 24, 2023
1 parent 24e42de commit 0104385
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/_templates/python/material/_base/docstring/parameters.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,33 @@ <h5>{{ section.title or "Parameters" }}</h5>
<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Parameter</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for parameter in section.value %}
<tr>
<td><code>{{ parameter.name }}</code></td>
<td>
<strong><code>{{ parameter.name }}</code></strong>
<br>
{% if parameter.annotation %}
{% with expression = parameter.annotation %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
{% endif %}
</td>
<td>{{ parameter.description|convert_markdown(heading_level, html_id) }}</td>
<td>
{% if parameter.default %}
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
{% with expression = parameter.default %}
<code>{% include "expression.html" with context %}</code>
{% endwith %}
{% else %}
<em>required</em>
<em>required</em>
{% endif %}
</td>
<td>{{ parameter.description|convert_markdown(heading_level, html_id) }}</td>
</tr>
{% endfor %}
</tbody>
Expand Down

0 comments on commit 0104385

Please sign in to comment.