github.com/pachyderm/pachyderm@v1.13.4/doc/custom_theme/layout.html (about) 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 name="robots" content="noindex, nofollow"> 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 <meta name="google-site-verification" content="v_GYlLLP6gRxmkO2lwO-s5yq0EutLjjaZV1JN7fxjEo" /> 82 </head> 83 84 <body class="wy-body-for-nav" role="document"> 85 86 {% block extrabody %} {% endblock %} 87 <div class="wy-grid-for-nav"> 88 89 {# SIDE NAV, TOGGLES ON MOBILE #} 90 <nav data-toggle="wy-nav-shift" class="wy-nav-side"> 91 <div class="wy-side-scroll"> 92 <div class="wy-side-nav-search"> 93 {% block sidebartitle %} 94 95 {% if logo and theme_logo_only %} 96 <a href="{{ pathto(master_doc) }}"> 97 {% else %} 98 <a href="{{ pathto(master_doc) }}" class="icon icon-home"> {{ project }} 99 {% endif %} 100 101 {% if logo %} 102 {# Not strictly valid HTML, but it's the only way to display/scale it properly, without weird scripting or heaps of work #} 103 <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" /> 104 {% endif %} 105 </a> 106 107 {% if theme_display_version %} 108 {%- set nav_version = version %} 109 {% if READTHEDOCS and current_version %} 110 {%- set nav_version = current_version %} 111 {% endif %} 112 {% if nav_version %} 113 <div class="version"> 114 {{ nav_version }} 115 </div> 116 {% endif %} 117 {% endif %} 118 119 {% include "searchbox.html" %} 120 121 {% endblock %} 122 </div> 123 124 <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> 125 {% block menu %} 126 {% set toctree = toctree(maxdepth=theme_navigation_depth, collapse=theme_collapse_navigation, includehidden=True) %} 127 {% if toctree %} 128 {{ toctree }} 129 {% else %} 130 <!-- Local TOC --> 131 <div class="local-toc">{{ toc }}</div> 132 {% endif %} 133 {% endblock %} 134 </div> 135 </div> 136 </nav> 137 138 <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap" style="background-color:rgba(0,0,0,0);"> 139 140 {# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #} 141 <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> 142 {% block mobile_nav %} 143 <i data-toggle="wy-nav-top" class="fa fa-bars"></i> 144 <a href="{{ pathto(master_doc) }}">{{ project }}</a> 145 {% endblock %} 146 </nav> 147 148 149 {# PAGE CONTENT #} 150 <div class="wy-nav-content"> 151 <div class="rst-content"> 152 {% include "breadcrumbs.html" %} 153 {% include "banner.html" %} 154 <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> 155 <div itemprop="articleBody"> 156 {% block body %}{% endblock %} 157 </div> 158 </div> 159 {% include "footer.html" %} 160 </div> 161 </div> 162 163 </section> 164 165 </div> 166 {% include "versions.html" %} 167 168 {% if not embedded %} 169 170 <script type="text/javascript"> 171 var DOCUMENTATION_OPTIONS = { 172 URL_ROOT:'{{ url_root }}', 173 VERSION:'{{ release|e }}', 174 COLLAPSE_INDEX:false, 175 FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}', 176 HAS_SOURCE: {{ has_source|lower }} 177 }; 178 </script> 179 {%- for scriptfile in script_files %} 180 <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> 181 {%- endfor %} 182 183 {% endif %} 184 185 {# RTD hosts this file, so just load on non RTD builds #} 186 {% if not READTHEDOCS %} 187 <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script> 188 {% endif %} 189 190 {# STICKY NAVIGATION #} 191 {% if theme_sticky_navigation %} 192 <script type="text/javascript"> 193 jQuery(function () { 194 SphinxRtdTheme.StickyNav.enable(); 195 }); 196 </script> 197 {% endif %} 198 199 {%- block footer %} {% endblock %} 200 201 <!-- Start of HubSpot Embed Code --> 202 <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/4751021.js"></script> 203 <!-- End of HubSpot Embed Code --> 204 205 </body> 206 </html>