mirror of https://github.com/kivy/kivy.git
Fixes missing documentation_options (#7624)
This commit is contained in:
parent
6a99134255
commit
b1b3492d4e
|
@ -96,20 +96,28 @@
|
||||||
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
|
||||||
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
||||||
{%- if not embedded %}
|
{%- if not embedded %}
|
||||||
|
{%- block scripts %}
|
||||||
|
{% if sphinx_version >= "1.8.0" %}
|
||||||
|
<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
|
||||||
|
{%- for scriptfile in script_files %}
|
||||||
|
{{ js_tag(scriptfile) }}
|
||||||
|
{%- endfor %}
|
||||||
|
{% else %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'{{ url_root }}',
|
URL_ROOT:'{{ url_root }}',
|
||||||
VERSION:'{{ release|e }}',
|
VERSION:'{{ release|e }}',
|
||||||
COLLAPSE_MODINDEX: false,
|
LANGUAGE:'{{ language }}',
|
||||||
FILE_SUFFIX: '{{ file_suffix }}',
|
COLLAPSE_INDEX:false,
|
||||||
HAS_SOURCE: {{ has_source|lower }}
|
FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
|
||||||
|
HAS_SOURCE: {{ has_source|lower }},
|
||||||
|
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
{%- block scripts %}
|
|
||||||
{%- for scriptfile in script_files %}
|
{%- for scriptfile in script_files %}
|
||||||
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
{% endif %}
|
||||||
<script type="text/javascript" src="{{ pathto('_static/jquery-effects-core-and-slide.js', 1) }}"></script>
|
<script type="text/javascript" src="{{ pathto('_static/jquery-effects-core-and-slide.js', 1) }}"></script>
|
||||||
<script type="text/javascript" src="{{ pathto('_static/jquery.cookie.js', 1) }}"></script>
|
<script type="text/javascript" src="{{ pathto('_static/jquery.cookie.js', 1) }}"></script>
|
||||||
<script type="text/javascript" src="{{ pathto('_static/kivy.js', 1) }}"></script>
|
<script type="text/javascript" src="{{ pathto('_static/kivy.js', 1) }}"></script>
|
||||||
|
|
Loading…
Reference in New Issue