1{% extends "!layout.html" %}
2{% block document %}
3  {% if is_release %}
4    <div class="wy-alert wy-alert-danger">
5      The <a href="/latest/{{ pagename }}.html">latest development version</a>
6      of this page may be more current than this released {{ version }} version.
7    </div>
8  {% else %}
9    <div class="wy-alert wy-alert-danger">
10     This is the documentation for the latest (main) development branch of
11     Zephyr. If you are looking for the documentation of previous releases, use
12     the drop-down menu on the left and select the desired version.
13    </div>
14  {% endif %}
15  {{ super() }}
16{% endblock %}
17{% block menu %}
18  {% include "zversions.html" %}
19  {{ super() }}
20  {% if reference_links %}
21  <div class="toctree-wrapper compound">
22    <p class="caption"><span class="caption-text">Reference</span></p>
23    <ul>
24      {% for title, url in reference_links.items() %}
25      <li class="toctree-l1">
26        <a class="reference internal" href="{{ url }}">{{ title }}</a>
27      </li>
28      {% endfor %}
29    </ul>
30  </div>
31  {% endif %}
32{% endblock %}
33{% block extrahead %}
34  <meta name="color-scheme" content="dark light">
35  {# Light/Dark stylesheets added here due to https://github.com/readthedocs/sphinx_rtd_theme/issues/1100 #}
36  <link rel="stylesheet" href="{{ pathto('_static/css/light.css', 1) }}" type="text/css" media="(prefers-color-scheme: light)"/>
37  <link rel="stylesheet" href="{{ pathto('_static/css/dark.css', 1) }}" type="text/css" media="(prefers-color-scheme: dark)"/>
38{% endblock %}
39