53 lines
1.0 KiB
Django/Jinja
53 lines
1.0 KiB
Django/Jinja
<!DOCTYPE html>
|
|
<meta charset='utf-8' />
|
|
<meta name='viewport' content='width=device-width, initial-scale=1' />
|
|
<title>{{ name }}</title>
|
|
|
|
<style media="screen">
|
|
|
|
</style>
|
|
|
|
|
|
{% macro show_value(val) %}
|
|
{% if val._type == "literalExpression" %}
|
|
<pre>{{ val.text }}</pre>
|
|
{% else %}
|
|
<pre>{{ val.text }}</pre>
|
|
{% endif %}
|
|
{% endmacro %}
|
|
|
|
|
|
{% for option in options %}
|
|
<details id="{{ option.name }}">
|
|
<summary>
|
|
<code>{{ option.name }}</code>
|
|
</summary>
|
|
|
|
<div>Desc:</div>
|
|
<div>{{ option.description | safe }}</div>
|
|
|
|
<div>Type:</div>
|
|
<div>{{ option.type }}</div>
|
|
|
|
{% if option.default is defined %}
|
|
<div>Type:</div>
|
|
<div>{{ show_value(option.default) }}</div>
|
|
{% endif %}
|
|
|
|
{% if option.example is defined %}
|
|
<div>example:</div>
|
|
<div>{{ show_value(option.example) }}</div>
|
|
{% endif %}
|
|
|
|
{% for declaration in option.declarations %}
|
|
<div>Source:</div>
|
|
<div>
|
|
<a href="{{ declaration.replace(source, "sources") }}.html">
|
|
<code>{{ declaration.replace(source, "<%s>" % name) }}</code>
|
|
</a>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</details>
|
|
{% endfor %}
|