{#
    A Jinja2 template for rendering runner vs guest compatibility matrix in tmt's own docs.
#}

..
   Please, do not edit this file, is is rendered from runner-guest-compatibility.yaml
   and test-runner-guest-compatibility-matrix.rst.j2, and all your changes would be overwritten.

Guest Compatibility
-------------------

.. list-table::
   :header-rows: 1

   * - Runner / Guest
    {% for runner in MATRIX.keys() %}
     - **{{ runner }}**
    {% endfor %}

{% for runner, guests in MATRIX.items() %}
   * - {{ runner }}
    {% for state, note in guests %}
        {% if state == 'supported' %}
     - ✅

        {% elif state == 'supported-with-caveats' %}
     - ❗{% if note %} See :ref:`note{# djlint:off H025 #}<note-{{ note.title | urlencode }}>{# djlint:on H025 #}`{% endif %}

        {% elif state == 'unknown' %}
     - ❓

        {% elif state == 'unsupported' %}
     - ❌

        {% endif %}
    {% endfor %}

{% endfor %}

{% for note in NOTES %}
.. _note-{{ note.title | urlencode }}:

{{ note.title }}
{{ '^' * (note.title | length) }}

{{ note.text | dedent }}

{% endfor %}
