| {% extends "basic/layout.html" %} |
| |
| {% set script_files = script_files + [pathto("_static/searchtools.js", 1)] %} |
| |
| {% block htmltitle %} |
| {{ super() }} |
| |
| <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> |
| |
| {% endblock %} |
| |
| |
| {%- macro sidebar() %} |
| {%- if render_sidebar %} |
| <div class="sphinxsidebar"> |
| <div class="sphinxsidebarwrapper"> |
| {%- block sidebarlogo %} |
| {%- if logo %} |
| <p class="logo"><a href="{{ pathto(master_doc) }}"> |
| <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/> |
| </a></p> |
| {%- endif %} |
| {%- endblock %} |
| {%- if sidebars != None %} |
| {#- new style sidebar: explicitly include/exclude templates #} |
| {%- for sidebartemplate in sidebars %} |
| {%- include sidebartemplate %} |
| {%- endfor %} |
| {%- else %} |
| {#- old style sidebars: using blocks -- should be deprecated #} |
| {%- block sidebartoc %} |
| {%- include "globaltoc.html" %} |
| {%- endblock %} |
| {%- block sidebarsourcelink %} |
| {%- include "sourcelink.html" %} |
| {%- endblock %} |
| {%- if customsidebar %} |
| {%- include customsidebar %} |
| {%- endif %} |
| {%- block sidebarsearch %} |
| {%- include "searchbox.html" %} |
| {%- endblock %} |
| {%- endif %} |
| </div> |
| </div> |
| {%- endif %} |
| {%- endmacro %} |
| |
| |
| {% block footer %} |
| <div class="footer"> |
| {%- if show_copyright %} |
| {%- if hasdoc('copyright') %} |
| {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %} |
| {%- else %} |
| {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} |
| {%- endif %} |
| {%- endif %} |
| {%- if last_updated %} |
| {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} |
| {%- endif %} |
| {%- if show_sphinx %} |
| {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} |
| {%- endif %} |
| {%- if theme_show_rtd %} |
| {% trans %}<br />Theme based on <a href="http://readthedocs.org/">Read The Docs</a>{% endtrans %} |
| {% endif %} |
| </div> |
| |
| |
| {% if theme_analytics_code %} |
| <!-- Google Analytics Code --> |
| <script type="text/javascript"> |
| var _gaq = _gaq || []; |
| _gaq.push(['_setAccount', '{{ theme_analytics_code }}']); |
| _gaq.push(['_trackPageview']); |
| |
| (function() { |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |
| })(); |
| </script> |
| {% endif %} |
| |
| {% endblock %} |