qmk_firmware/data/templates/xap/docs/routes.md.j2

13 lines
445 B
Plaintext
Raw Normal View History

{%- for id, route in xap.routes | dictsort %}
### {{ route.name }} - `{{ id }}`
{{ route.description }}
{% if route.routes %}
2022-05-22 20:12:32 +00:00
| Name | Route | Tags | Definition |
| -- | -- | -- | -- |
{%- for subid, subroute in route.routes | dictsort %}
2022-05-22 20:12:32 +00:00
| {{ subroute.name }} | `{{ id }} {{ subid }}` | {% if 'secure' == subroute.permissions %}__Secure__{% endif %} | {{ subroute.description.replace('\n', '<br>') }} |
{%- endfor %}
{% endif %}
{%- endfor %}