1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
{#
mpld3/layout.html
~~~~~~~~~~~~~~~~~
Sphinx layout template for the mpld3 theme.
:copyright: Copyright 2014 by the mpld3 team, see AUTHORS.md
:license: BSD, see LICENSE for details.
Adapted from the haiku theme in the sphinx project,
Copyright 2007-2011, BSD licensed. sphinx-doc.org/
#}
{% extends "basic/layout.html" %}
{% set script_files = script_files + ['_static/theme_extras.js'] %}
{% set css_files = css_files + ['_static/print.css'] %}
{{ css_files }}
{# do not display relbars #}
{% block relbar1 %}{% endblock %}
{% block relbar2 %}{% endblock %}
{% macro nav() %}
<p>
{%- block mpld3rel1 %}
{%- endblock %}
{%- if prev %}
«  <a href="{{ prev.link|e }}">{{ prev.title }}</a>
  ::  
{%- endif %}
<a class="uplink" href="{{ pathto(master_doc) }}">{{ _('Contents') }}</a>
{%- if next %}
  ::  
<a href="{{ next.link|e }}">{{ next.title }}</a>  »
{%- endif %}
{%- block mpld3rel2 %}
{%- endblock %}
</p>
{% endmacro %}
{% block content %}
<div class="header">
{%- block mpld3header %}
{%- if theme_full_logo != "false" %}
<a href="{{ pathto('index') }}">
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
</a>
{%- else %}
{%- if logo -%}
<a href="{{ pathto('index') }}">
<img class="leftlogo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
</a>
{%- endif -%}
<h1 class="heading"><a href="{{ pathto('index') }}">
<span>{{ shorttitle|e }}</span></a></h1>
<h2 class="heading"><span>{{ title|striptags|e }}</span></h2>
{%- endif %}
{%- endblock %}
</div>
<div class="topnav">
{{ nav() }}
</div>
<div class="content">
{#{%- if display_toc %}
<div id="toc">
<h3>Table Of Contents</h3>
{{ toc }}
</div>
{%- endif %}#}
{% block body %}{% endblock %}
</div>
<div class="bottomnav">
{{ nav() }}
</div>
{% endblock %}
|