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