layout.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 relbar1 %}
  20. {{ super() }}
  21. {%- if outdated is defined %}
  22. <div class="outdated">
  23. This documents an old version of CMake.
  24. <a href="https://cmake.org/cmake/help/latest/{{ pagename }}.html">
  25. Click here to see the latest release.
  26. </a>
  27. <span class="version_switch_note"></span>
  28. </div>
  29. {%- endif %}
  30. {%- endblock %}
  31. {% block extrahead %}
  32. {%- if opensearch is defined %}
  33. <link rel="search" type="application/opensearchdescription+xml"
  34. title="Search within CMake Documentation of Latest Version"
  35. href="{{ pathto('../latest-opensearch.xml', 1) }}"/>
  36. {%- endif %}
  37. {%- if versionswitch is defined %}
  38. <script type="text/javascript" src="{{ pathto('../version_switch.js', 1) }}"></script>
  39. {%- endif %}
  40. {{ super() }}
  41. {% endblock %}
  42. {# Put some context in the html title element. Workaround for #}
  43. {# https://bitbucket.org/birkenfeld/sphinx/issue/1492/qthelp-generate-html-title-element-should #}
  44. {% block htmltitle %}
  45. <title>{{ title|striptags|e }} {{ "&mdash;"|safe }} {{ docstitle|e }}</title>
  46. {% endblock %}
  47. {%- block footer %}
  48. {{ super() }}
  49. {%- if googleanalytics is defined %}
  50. <script type="text/javascript">
  51. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  52. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  53. </script>
  54. <script type="text/javascript">
  55. try {
  56. var pageTracker = _gat._getTracker("UA-6042509-4");
  57. pageTracker._trackPageview();
  58. } catch(err) {}
  59. </script>
  60. {%- endif %}
  61. {%- endblock %}