{# sphinxdoc/layout.html ~~~~~~~~~~~~~~~~~~~~~ Sphinx layout template for the sphinxdoc theme. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {% extends "basic/layout.html" %} {# Like the regular sidebar from the Basic theme but move the Search box to the top #} {%- macro sidebar2() %} {%- if render_sidebar %}
{%- block sidebarlogo %} {%- if logo %} {%- endif %} {%- endblock %} {#- old style sidebars: using blocks -- should be deprecated #} {%- block sidebarsearch %} {%- include "searchbox.html" %} {%- endblock %} {%- block sidebartoc %} {%- include "localtoc.html" %} {%- endblock %} {%- block sidebarrel %} {%- include "relations.html" %} {%- endblock %} {%- block sidebarsourcelink %} {%- include "sourcelink.html" %} {%- endblock %} {%- if customsidebar %} {%- include customsidebar %} {%- endif %}
{%- endif %} {%- endmacro %} {# put the sidebar before the body #} {% block sidebar1 %}{{ sidebar2() }}{% endblock %} {% block sidebar2 %}{% endblock %}