You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
6.5 KiB
190 lines
6.5 KiB
{# TEMPLATE VAR SETTINGS #}
|
|
{%- set url_root = pathto('', 1) %}
|
|
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
|
|
{%- if not embedded and docstitle %}
|
|
{%- set titlesuffix = " — "|safe + docstitle|e %}
|
|
{%- else %}
|
|
{%- set titlesuffix = "" %}
|
|
{%- endif %}
|
|
|
|
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
{{ metatags }}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{% block htmltitle %}
|
|
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
|
|
{% endblock %}
|
|
|
|
{# FAVICON #}
|
|
{% if favicon %}
|
|
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
|
|
{% endif %}
|
|
|
|
{# CSS #}
|
|
|
|
{# OPENSEARCH #}
|
|
{% if not embedded %}
|
|
{% if use_opensearch %}
|
|
<link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/>
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{# RTD hosts this file, so just load on non RTD builds #}
|
|
{% if not READTHEDOCS %}
|
|
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
|
{% endif %}
|
|
|
|
{% for cssfile in css_files %}
|
|
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
|
|
{% endfor %}
|
|
{% for cssfile in extra_css_files %}
|
|
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
|
|
{% endfor %}
|
|
|
|
{%- block linktags %}
|
|
{%- if hasdoc('about') %}
|
|
<link rel="author" title="{{ _('About these documents') }}"
|
|
href="{{ pathto('about') }}"/>
|
|
{%- endif %}
|
|
{%- if hasdoc('genindex') %}
|
|
<link rel="index" title="{{ _('Index') }}"
|
|
href="{{ pathto('genindex') }}"/>
|
|
{%- endif %}
|
|
{%- if hasdoc('search') %}
|
|
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}"/>
|
|
{%- endif %}
|
|
{%- if hasdoc('copyright') %}
|
|
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}"/>
|
|
{%- endif %}
|
|
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}"/>
|
|
{%- if parents %}
|
|
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}"/>
|
|
{%- endif %}
|
|
{%- if next %}
|
|
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}"/>
|
|
{%- endif %}
|
|
{%- if prev %}
|
|
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}"/>
|
|
{%- endif %}
|
|
{%- endblock %}
|
|
{%- block extrahead %}
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/css/perfect-scrollbar.min.css" type="text/css" />
|
|
<link rel="stylesheet" href="{{pathto('_static/css/override.css', 1)}}" type="text/css" />
|
|
<script>
|
|
var _hmt = _hmt || [];
|
|
(function() {
|
|
var hm = document.createElement("script");
|
|
hm.src = "//hm.baidu.com/hm.js?b9a314ab40d04d805655aab1deee08ba";
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(hm, s);
|
|
})();
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|
|
{# Keep modernizr in head - http://modernizr.com/docs/#installing #}
|
|
<script src="{{ pathto('_static/js/modernizr.min.js', 1) }}"></script>
|
|
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
{% block extrabody %}
|
|
<header class="site-header">
|
|
<div class="site-logo">
|
|
<a href="/"><img src="{{pathto('_static/images/PP_w.png', 1)}}"></a>
|
|
</div>
|
|
<div class="site-nav-links">
|
|
<div class="site-menu">
|
|
<a class="fork-on-github" href="https://github.com/PaddlePaddle/Paddle" target="_blank"><i class="fa fa-github"></i>Folk me on Github</a>
|
|
<div class="language-switcher dropdown">
|
|
<a type="button" data-toggle="dropdown">
|
|
<span>English</span>
|
|
<i class="fa fa-angle-up"></i>
|
|
<i class="fa fa-angle-down"></i>
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="/doc_cn">中文</a></li>
|
|
<li><a href="/doc">English</a></li>
|
|
</ul>
|
|
</div>
|
|
<ul class="site-page-links">
|
|
<li><a href="/">Home</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="doc-module">
|
|
{%set modules = toctree(maxdepth=0, collapse=False, titles_only=True)%}
|
|
{{modules}}
|
|
{% include "searchbox.html" %}
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{% endblock %}
|
|
<div class="main-content-wrap">
|
|
|
|
{# SIDE NAV, TOGGLES ON MOBILE #}
|
|
<nav class="doc-menu-vertical" role="navigation">
|
|
{% block menu %}
|
|
{% set toctree = toctree(maxdepth=-1, collapse=False,titles_only=True, includehidden=True) %}
|
|
{{ toctree }}
|
|
{% endblock %}
|
|
</nav>
|
|
{% if False %}
|
|
<nav class="local-toc">{{ toc }}</nav>
|
|
{% endif %}
|
|
<section class="doc-content-wrap">
|
|
|
|
{% include "breadcrumbs.html" %}
|
|
{# PAGE CONTENT #}
|
|
<div class="wy-nav-content" id="doc-content">
|
|
<div class="rst-content">
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div itemprop="articleBody">
|
|
{% block body %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% include "footer.html" %}
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
{% include "versions.html" %}
|
|
|
|
{% if not embedded %}
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT:'{{ url_root }}',
|
|
VERSION:'{{ release|e }}',
|
|
COLLAPSE_INDEX:false,
|
|
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
|
|
HAS_SOURCE: {{ has_source|lower }},
|
|
SOURCELINK_SUFFIX: ".txt",
|
|
};
|
|
</script>
|
|
{%- for scriptfile in script_files %}
|
|
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
|
{%- endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{# RTD hosts this file, so just load on non RTD builds #}
|
|
{% if not READTHEDOCS %}
|
|
<script type="text/javascript" src="{{ pathto('_static/js/theme.js', 1) }}"></script>
|
|
{% endif %}
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/perfect-scrollbar/0.6.14/js/perfect-scrollbar.jquery.min.js"></script>
|
|
<script src="{{ pathto('_static/js/paddle_doc_init.js', 1) }}"></script>
|
|
{%- block footer %} {% endblock %}
|
|
|
|
</body>
|
|
</html>
|