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