layout.html 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. {% extends "!layout.html" %}
  2. {% block rootrellink %}
  3. <li>
  4. <img src="{{ pathto('_static/cmake-logo-16.png', 1) }}" alt=""
  5. style="vertical-align: middle; margin-top: -2px" />
  6. </li>
  7. <li>
  8. <a href="https://cmake.org/">CMake</a>{{ reldelim1 }}
  9. </li>
  10. <li>
  11. {%- if versionswitch is defined %}
  12. <span class="version_switch">{{ release }}</span>
  13. <a href="{{ pathto(master_doc) }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }}
  14. {%- else %}
  15. <a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}
  16. {%- endif %}
  17. </li>
  18. {% endblock %}
  19. {% block extrahead %}
  20. {% if versionswitch is defined %}
  21. <script type="text/javascript" src="{{ pathto('../version_switch.js', 1) }}"></script>
  22. {% endif %}
  23. {{ super() }}
  24. {% endblock %}
  25. {# Put some context in the html title element. Workaround for #}
  26. {# https://bitbucket.org/birkenfeld/sphinx/issue/1492/qthelp-generate-html-title-element-should #}
  27. {% block htmltitle %}
  28. <title>{{ title|striptags|e }} {{ "&mdash;"|safe }} {{ docstitle|e }}</title>
  29. {% endblock %}