qmk_firmware/data/templates/xap/docs/routes.md.j2
2022-05-22 20:55:17 +01:00

12 lines
440 B
Django/Jinja

{%- for id, route in xap.routes | dictsort %}
### {{ route.name }} - `{{ id }}`
{{ route.description }}
{% if route.routes %}
| Name | Route | Definition |
| -- | -- | -- |
{%- for subid, subroute in route.routes | dictsort %}
| {{ subroute.name }} | `{{ id }} {{ subid }}` | {% if 'secure' == subroute.permissions %}__Secure unlock required__ {% endif %}{{ subroute.description.split('\n')[0] }} |
{%- endfor %}
{% endif %}
{%- endfor %}