UPdate.
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
{# retoor <retoor@molodetz.nl> #}
|
||||
|
||||
{% macro method_signature(name, params=[], returns=None, arrow='→') %}
|
||||
<div class="method-signature">
|
||||
<span class="method-name">{{ name }}</span>({% for p in params %}<span class="param">{{ p }}</span>{% if not loop.last %}, {% endif %}{% endfor %}){% if returns %} {{ arrow }} <span class="type">{{ returns }}</span>{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro property_signature(name, returns=None, arrow='→') %}
|
||||
<div class="method-signature">
|
||||
<span class="method-name">{{ name }}</span>{% if returns %} {{ arrow }} <span class="type">{{ returns }}</span>{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro admonition(type, content, title=None) %}
|
||||
<div class="admonition {{ type }}">
|
||||
<div class="admonition-title">{{ title or type|title }}</div>
|
||||
<p>{{ content }}</p>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro code_block(code, lang="wren") %}
|
||||
<pre><code>{{ code }}</code></pre>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro class_header(name, description=None) %}
|
||||
<div class="class-header">
|
||||
<h3>{{ name }}</h3>
|
||||
{% if description %}<p>{{ description }}</p>{% endif %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro param_list(params) %}
|
||||
<ul class="param-list">
|
||||
{% for p in params %}
|
||||
<li><span class="param-name">{{ p.name }}</span> <span class="param-type">({{ p.type }})</span> - {{ p.description }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro toc(items) %}
|
||||
<div class="toc">
|
||||
<h4>On This Page</h4>
|
||||
<ul>
|
||||
{% for item in items %}
|
||||
<li><a href="#{{ item.anchor }}">{{ item.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro card_grid(cards) %}
|
||||
<div class="card-grid">
|
||||
{% for card in cards %}
|
||||
<div class="card">
|
||||
<h3><a href="{{ card.href }}">{{ card.title }}</a></h3>
|
||||
<p>{{ card.description }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro module_grid(modules) %}
|
||||
<div class="module-grid">
|
||||
{% for m in modules %}
|
||||
<a href="{{ m.href }}" class="module-card">{{ m.name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro data_table(headers, rows) %}
|
||||
<table>
|
||||
<tr>{% for h in headers %}<th>{{ h }}</th>{% endfor %}</tr>
|
||||
{% for row in rows %}
|
||||
<tr>{% for cell in row %}<td>{{ cell|safe }}</td>{% endfor %}</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro example_output(output) %}
|
||||
<div class="example-output">{{ output }}</div>
|
||||
{% endmacro %}
|
||||
Reference in New Issue
Block a user