mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Docs table rendering change/cleanup (#3579)
This commit is contained in:
@@ -5,33 +5,33 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user