|
| 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 | + {% for cssfile in extra_css_files %} |
| 45 | + <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" /> |
| 46 | + {% endfor %} |
| 47 | + |
| 48 | + {%- block linktags %} |
| 49 | + {%- if hasdoc('about') %} |
| 50 | + <link rel="author" title="{{ _('About these documents') }}" |
| 51 | + href="{{ pathto('about') }}"/> |
| 52 | + {%- endif %} |
| 53 | + {%- if hasdoc('genindex') %} |
| 54 | + <link rel="index" title="{{ _('Index') }}" |
| 55 | + href="{{ pathto('genindex') }}"/> |
| 56 | + {%- endif %} |
| 57 | + {%- if hasdoc('search') %} |
| 58 | + <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/> |
| 59 | + {%- endif %} |
| 60 | + {%- if hasdoc('copyright') %} |
| 61 | + <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/> |
| 62 | + {%- endif %} |
| 63 | + <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/> |
| 64 | + {%- if parents %} |
| 65 | + <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/> |
| 66 | + {%- endif %} |
| 67 | + {%- if next %} |
| 68 | + <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/> |
| 69 | + {%- endif %} |
| 70 | + {%- if prev %} |
| 71 | + <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/> |
| 72 | + {%- endif %} |
| 73 | + {%- endblock %} |
| 74 | + {%- block extrahead %} |
| 75 | + |
| 76 | + <link rel="stylesheet" href="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/css/perfect-scrollbar.min.css" type="text/css" /> |
| 77 | + <link rel="stylesheet" href="{{pathto('_static/css/override.css', 1)}}" type="text/css" /> |
| 78 | + <script> |
| 79 | + var _hmt = _hmt || []; |
| 80 | + (function() { |
| 81 | + var hm = document.createElement("script"); |
| 82 | + hm.src = "//hm.baidu.com/hm.js?b9a314ab40d04d805655aab1deee08ba"; |
| 83 | + var s = document.getElementsByTagName("script")[0]; |
| 84 | + s.parentNode.insertBefore(hm, s); |
| 85 | + })(); |
| 86 | + </script> |
| 87 | + |
| 88 | + {% endblock %} |
| 89 | + |
| 90 | + {# Keep modernizr in head - http://modernizr.com/docs/#installing #} |
| 91 | + <script src="{{ pathto('_static/js/modernizr.min.js', 1) }}"></script> |
| 92 | + |
| 93 | +</head> |
| 94 | + |
| 95 | +<body class="wy-body-for-nav" role="document"> |
| 96 | + |
| 97 | + {% block extrabody %} |
| 98 | + <header class="site-header"> |
| 99 | + <div class="site-logo"> |
| 100 | + <a href="/"><img src="{{pathto('_static/images/PP_w.png', 1)}}"></a> |
| 101 | + </div> |
| 102 | + <div class="site-nav-links"> |
| 103 | + <div class="site-menu"> |
| 104 | + <a class="fork-on-github" href="https://github.com/PaddlePaddle/Paddle" target="_blank"><i class="fa fa-github"></i>Folk me on Github</a> |
| 105 | + <div class="language-switcher dropdown"> |
| 106 | + <a type="button" data-toggle="dropdown"> |
| 107 | + <span>English</span> |
| 108 | + <i class="fa fa-angle-up"></i> |
| 109 | + <i class="fa fa-angle-down"></i> |
| 110 | + </a> |
| 111 | + <ul class="dropdown-menu"> |
| 112 | + <li><a href="/doc_cn">中文</a></li> |
| 113 | + <li><a href="/doc">English</a></li> |
| 114 | + </ul> |
| 115 | + </div> |
| 116 | + <ul class="site-page-links"> |
| 117 | + <li><a>Home</a></li> |
| 118 | + <li><a>Get Started</a></li> |
| 119 | + <li class="active"><a>Documentation</a></li> |
| 120 | + <li><a>About Us</a></li> |
| 121 | + </ul> |
| 122 | + </div> |
| 123 | + <div class="doc-module"> |
| 124 | + {%set modules = toctree(maxdepth=0, collapse=False, titles_only=True)%} |
| 125 | + {{modules}} |
| 126 | + {% include "searchbox.html" %} |
| 127 | + </div> |
| 128 | + </div> |
| 129 | + </header> |
| 130 | + {% endblock %} |
| 131 | + <div class="main-content-wrap"> |
| 132 | + |
| 133 | + {# SIDE NAV, TOGGLES ON MOBILE #} |
| 134 | + <nav class="doc-menu-vertical" role="navigation"> |
| 135 | + {% block menu %} |
| 136 | + {% set toctree = toctree(maxdepth=-1, collapse=False,titles_only=True, includehidden=True) %} |
| 137 | + {{ toctree }} |
| 138 | + {% endblock %} |
| 139 | + </nav> |
| 140 | + {% if toc %} |
| 141 | + <nav class="local-toc">{{ toc }}</nav> |
| 142 | + {% endif %} |
| 143 | + <section class="doc-content-wrap"> |
| 144 | + |
| 145 | + {% include "breadcrumbs.html" %} |
| 146 | + {# PAGE CONTENT #} |
| 147 | + <div class="wy-nav-content" id="doc-content"> |
| 148 | + <div class="rst-content"> |
| 149 | + <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> |
| 150 | + <div itemprop="articleBody"> |
| 151 | + {% block body %}{% endblock %} |
| 152 | + </div> |
| 153 | + </div> |
| 154 | + {% include "footer.html" %} |
| 155 | + </div> |
| 156 | + </div> |
| 157 | + |
| 158 | + </section> |
| 159 | + |
| 160 | + </div> |
| 161 | + {% include "versions.html" %} |
| 162 | + |
| 163 | + {% if not embedded %} |
| 164 | + |
| 165 | + <script type="text/javascript"> |
| 166 | + var DOCUMENTATION_OPTIONS = { |
| 167 | + URL_ROOT:'{{ url_root }}', |
| 168 | + VERSION:'{{ release|e }}', |
| 169 | + COLLAPSE_INDEX:false, |
| 170 | + FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}', |
| 171 | + HAS_SOURCE: {{ has_source|lower }} |
| 172 | + }; |
| 173 | + </script> |
| 174 | + {%- for scriptfile in script_files %} |
| 175 | + <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> |
| 176 | + {%- endfor %} |
| 177 | + |
| 178 | + {% endif %} |
| 179 | + |
| 180 | + {# RTD hosts this file, so just load on non RTD builds #} |
| 181 | + {% if not READTHEDOCS %} |
| 182 | + <script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script> |
| 183 | + {% endif %} |
| 184 | + |
| 185 | + <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script> |
| 186 | + <script src="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/js/perfect-scrollbar.jquery.min.js"></script> |
| 187 | + <script src="{{ pathto('_static/js/paddle_doc_init.js', 1) }}"></script> |
| 188 | + {%- block footer %} {% endblock %} |
| 189 | + |
| 190 | +</body> |
| 191 | +</html> |
0 commit comments