{# scipy/layout.html ~~~~~~~~~~~~~~~~~ Master layout template for Sphinx themes. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. #} {%- block doctype -%} {%- endblock %} {%- set url_root = pathto('', 1) %} {%- if url_root == '#' %}{% set url_root = '' %}{% endif %} {%- if not embedded and docstitle %} {%- set titlesuffix = " — "|safe + docstitle|e %} {%- else %} {%- set titlesuffix = "" %} {%- endif %} {%- macro relbar_top() %} {%- endmacro %} {%- macro relbar_top_right() %} {%- endmacro %} {%- macro relbar_bottom() %} {%- endmacro %} {%- macro sidebar() %}
{%- block sidebarlogo %} {%- if logo %} {%- 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 "localtoc.html" %} {%- endblock %} {%- block sidebarrel %} {%- include "relations.html" %} {%- endblock %} {%- block sidebarsourcelink %} {%- include "sourcelink.html" %} {%- endblock %} {%- if customsidebar %} {%- include customsidebar %} {%- endif %} {%- block sidebarsearch %} {%- include "searchbox.html" %} {%- endblock %} {%- endif %}
{%- endmacro %} {%- macro script() %} {%- for scriptfile in script_files %} {%- endfor %} {%- endmacro %} {%- macro css() %} {%- for cssfile in css_files %} {%- endfor %} {%- endmacro %} {{ metatags }} {%- block htmltitle %} {{ title|striptags|e }}{{ titlesuffix }} {%- endblock %} {{ css() }} {%- if not embedded %} {%- block scripts %} {{ script() }} {%- endblock %} {%- if use_opensearch %} {%- endif %} {%- if favicon %} {%- endif %} {%- endif %} {%- block linktags %} {%- if hasdoc('about') %} {%- endif %} {%- if hasdoc('genindex') %} {%- endif %} {%- if hasdoc('search') %} {%- endif %} {%- if hasdoc('copyright') %} {%- endif %} {%- if parents %} {%- endif %} {%- if next %} {%- endif %} {%- if prev %} {%- endif %} {%- endblock %} {%- block extrahead %} {% endblock %} {%- block header %} {% if theme_scipy_org_logo %}
SciPy
{% else %}
{% endif %} {% endblock %} {%- block content %}
{%- block navbar %} {% if theme_navigation_links or sidebar == 'left' %}
{{ relbar_top() }} {% if theme_navigation_links %} {{ relbar_top_right() }} {% endif %}
{% endif %} {% endblock %}
{%- if theme_sidebar == 'left' -%} {{ sidebar() }} {%- endif %} {%- if theme_sidebar == 'none' -%}
{% else %}
{%- endif %} {% if not theme_navigation_links and sidebar != 'left' %}
{{ relbar_top() }}
{% endif %} {%- block document %}
{% block body %} {% endblock %}
{%- endblock %}
{%- if theme_sidebar == 'right' -%} {{ sidebar() }} {%- elif theme_sidebar == 'none' -%}
{%- endif %}
{%- endblock %}
{{ relbar_bottom() }}
{%- block footer %}
{%- endblock %}