2024-06-13 15:39:22 +03:00
|
|
|
## Options
|
2024-06-14 16:32:42 +03:00
|
|
|
{%- for name, option in options.items() recursive %}
|
2024-06-13 15:39:22 +03:00
|
|
|
|
2024-07-11 17:36:36 +03:00
|
|
|
##{{"##"}} {{ ((option.loc | join (".")) or name).replace("<", "<").replace(">", ">") }}
|
2024-06-13 15:39:22 +03:00
|
|
|
|
2024-06-18 14:17:34 +03:00
|
|
|
{% if (option.description or '') != "This option has no description." -%}
|
2024-06-15 21:34:53 +03:00
|
|
|
{{ option.description or '' }}
|
2024-06-18 14:17:34 +03:00
|
|
|
{%- endif %}
|
2024-06-13 15:39:22 +03:00
|
|
|
|
2024-06-15 21:34:53 +03:00
|
|
|
{% if "type" in option %}
|
2024-06-13 15:39:22 +03:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td>type</td>
|
2024-06-18 14:17:34 +03:00
|
|
|
<td>{{ option.type}} {{ "(read only)" if option.readOnly else "" }}</td>
|
2024-06-13 15:39:22 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>source</td>
|
2024-06-14 16:32:42 +03:00
|
|
|
<td>{%- for d in option.declarations -%}<a href="{{d.url}}">{{d.name}}</a>{{ ", " if not loop.last else "" }}{%- endfor -%}</td>
|
2024-06-13 15:39:22 +03:00
|
|
|
</tr>
|
2024-06-14 16:32:42 +03:00
|
|
|
{%- if option.default -%}
|
2024-06-13 15:39:22 +03:00
|
|
|
<tr>
|
|
|
|
<td>default</td>
|
2024-06-18 14:17:34 +03:00
|
|
|
<td>{{(option.default | default({})).text | pygments("nix")}}</td>
|
2024-06-13 15:39:22 +03:00
|
|
|
</tr>
|
|
|
|
{%- endif -%}
|
2024-06-14 16:32:42 +03:00
|
|
|
{%- if option.example -%}
|
2024-06-13 15:39:22 +03:00
|
|
|
<tr>
|
|
|
|
<td>example</td>
|
|
|
|
<td>
|
2024-06-18 14:17:34 +03:00
|
|
|
{{(option.example | default({})).text | pygments("nix")}}
|
2024-06-13 15:39:22 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{%- endif -%}
|
2024-06-18 13:58:02 +03:00
|
|
|
|
2024-06-13 15:39:22 +03:00
|
|
|
</table>
|
2024-06-15 21:34:53 +03:00
|
|
|
{% endif %}
|
|
|
|
{%- if option.children -%}
|
|
|
|
{{ loop(option.children.items()) }}
|
2024-06-13 15:39:22 +03:00
|
|
|
{%- endif %}
|
|
|
|
{%- endfor %}
|