|
| 1 | +{# TEMPLATE VAR SETTINGS #} |
| 2 | +{%- set url_root = pathto('', 1) %} |
| 3 | +{%- if url_root == '#' %}{% set url_root = '' %}{% endif %} |
| 4 | +{%- if not embedded and docstitle %} |
| 5 | + {%- set titlesuffix = " — "|safe + docstitle|e %} |
| 6 | +{%- else %} |
| 7 | + {%- set titlesuffix = "" %} |
| 8 | +{%- endif %} |
| 9 | + |
| 10 | +<!DOCTYPE html> |
| 11 | +<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
| 12 | +<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
| 13 | +<head> |
| 14 | + <meta charset="utf-8"> |
| 15 | + {{ metatags }} |
| 16 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 17 | + {% block htmltitle %} |
| 18 | + <title>{{ title|striptags|e }}{{ titlesuffix }}</title> |
| 19 | + {% endblock %} |
| 20 | + |
| 21 | + {# FAVICON #} |
| 22 | + {% if favicon %} |
| 23 | + <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/> |
| 24 | + {% endif %} |
| 25 | + |
| 26 | + {# CSS #} |
| 27 | + |
| 28 | + {# OPENSEARCH #} |
| 29 | + {% if not embedded %} |
| 30 | + {% if use_opensearch %} |
| 31 | + <link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/> |
| 32 | + {% endif %} |
| 33 | + |
| 34 | + {% endif %} |
| 35 | + |
| 36 | + {# RTD hosts this file, so just load on non RTD builds #} |
| 37 | + {% if not READTHEDOCS %} |
| 38 | + <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /> |
| 39 | + {% endif %} |
| 40 | + |
| 41 | + {% for cssfile in css_files %} |
| 42 | + <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" /> |
| 43 | + {% endfor %} |
| 44 | + |
| 45 | + {% for cssfile in extra_css_files %} |
| 46 | + <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" /> |
| 47 | + {% endfor %} |
| 48 | + |
| 49 | + {%- block linktags %} |
| 50 | + {%- if hasdoc('about') %} |
| 51 | + <link rel="author" title="{{ _('About these documents') }}" |
| 52 | + href="{{ pathto('about') }}"/> |
| 53 | + {%- endif %} |
| 54 | + {%- if hasdoc('genindex') %} |
| 55 | + <link rel="index" title="{{ _('Index') }}" |
| 56 | + href="{{ pathto('genindex') }}"/> |
| 57 | + {%- endif %} |
| 58 | + {%- if hasdoc('search') %} |
| 59 | + <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/> |
| 60 | + {%- endif %} |
| 61 | + {%- if hasdoc('copyright') %} |
| 62 | + <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/> |
| 63 | + {%- endif %} |
| 64 | + <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/> |
| 65 | + {%- if parents %} |
| 66 | + <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/> |
| 67 | + {%- endif %} |
| 68 | + {%- if next %} |
| 69 | + <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/> |
| 70 | + {%- endif %} |
| 71 | + {%- if prev %} |
| 72 | + <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/> |
| 73 | + {%- endif %} |
| 74 | + {%- endblock %} |
| 75 | + {%- block extrahead %} {% endblock %} |
| 76 | + |
| 77 | + {# Keep modernizr in head - http://modernizr.com/docs/#installing #} |
| 78 | + <script src="_static/js/modernizr.min.js"></script> |
| 79 | + |
| 80 | +</head> |
| 81 | + |
| 82 | +<body class="wy-body-for-nav" role="document"> |
| 83 | + |
| 84 | + <div class="wy-grid-for-nav"> |
| 85 | + |
| 86 | + {# SIDE NAV, TOGGLES ON MOBILE #} |
| 87 | + <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| 88 | + <div class="wy-side-nav-search"> |
| 89 | + {% block sidebartitle %} |
| 90 | + |
| 91 | + {% if logo and theme_logo_only %} |
| 92 | + <a href="{{ pathto(master_doc) }}"> |
| 93 | + {% else %} |
| 94 | + <a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }} |
| 95 | + {% endif %} |
| 96 | + |
| 97 | + {% if logo %} |
| 98 | + {# Not strictly valid HTML, but it's the only way to display/scale it properly, without weird scripting or heaps of work #} |
| 99 | + <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" /> |
| 100 | + {% endif %} |
| 101 | + </a> |
| 102 | + |
| 103 | + {% include "searchbox.html" %} |
| 104 | + |
| 105 | + {% endblock %} |
| 106 | + </div> |
| 107 | + |
| 108 | + <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
| 109 | + {% block menu %} |
| 110 | + {% set toctree = toctree(maxdepth=2, collapse=False, includehidden=True) %} |
| 111 | + {% if toctree %} |
| 112 | + {{ toctree }} |
| 113 | + {% else %} |
| 114 | + <!-- Local TOC --> |
| 115 | + <div class="local-toc">{{ toc }}</div> |
| 116 | + {% endif %} |
| 117 | + {% endblock %} |
| 118 | + </div> |
| 119 | + |
| 120 | + </nav> |
| 121 | + |
| 122 | + <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
| 123 | + |
| 124 | + {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #} |
| 125 | + <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
| 126 | + <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| 127 | + <a href="{{ pathto(master_doc) }}">{{ project }}</a> |
| 128 | + </nav> |
| 129 | + |
| 130 | + |
| 131 | + {# PAGE CONTENT #} |
| 132 | + <div class="wy-nav-content"> |
| 133 | + <div class="rst-content"> |
| 134 | + {% include "breadcrumbs.html" %} |
| 135 | + <div role="main" class="document"> |
| 136 | + {% block body %}{% endblock %} |
| 137 | + </div> |
| 138 | + {% include "footer.html" %} |
| 139 | + </div> |
| 140 | + </div> |
| 141 | + |
| 142 | + </section> |
| 143 | + |
| 144 | + </div> |
| 145 | + {% include "versions.html" %} |
| 146 | + |
| 147 | + {% if not embedded %} |
| 148 | + |
| 149 | + <script type="text/javascript"> |
| 150 | + var DOCUMENTATION_OPTIONS = { |
| 151 | + URL_ROOT:'{{ url_root }}', |
| 152 | + VERSION:'{{ release|e }}', |
| 153 | + COLLAPSE_INDEX:false, |
| 154 | + FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}', |
| 155 | + HAS_SOURCE: {{ has_source|lower }} |
| 156 | + }; |
| 157 | + </script> |
| 158 | + {%- for scriptfile in script_files %} |
| 159 | + <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> |
| 160 | + {%- endfor %} |
| 161 | + |
| 162 | + {% endif %} |
| 163 | + |
| 164 | + {# RTD hosts this file, so just load on non RTD builds #} |
| 165 | + {% if not READTHEDOCS %} |
| 166 | + <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script> |
| 167 | + {% endif %} |
| 168 | + |
| 169 | + {# STICKY NAVIGATION #} |
| 170 | + {% if theme_sticky_navigation %} |
| 171 | + <script type="text/javascript"> |
| 172 | + jQuery(function () { |
| 173 | + SphinxRtdTheme.StickyNav.enable(); |
| 174 | + }); |
| 175 | + </script> |
| 176 | + {% endif %} |
| 177 | + |
| 178 | + {%- block footer %} {% endblock %} |
| 179 | + |
| 180 | +</body> |
| 181 | +</html> |
0 commit comments