Fixes missing documentation_options (#7624)

This commit is contained in:
Mirko 2021-09-17 21:39:47 +02:00 committed by GitHub
parent 6a99134255
commit b1b3492d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 18 deletions

View File

@ -96,24 +96,32 @@
<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 %}
<script type="text/javascript"> {%- block scripts %}
var DOCUMENTATION_OPTIONS = { {% if sphinx_version >= "1.8.0" %}
URL_ROOT: '{{ url_root }}', <script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
VERSION: '{{ release|e }}', {%- for scriptfile in script_files %}
COLLAPSE_MODINDEX: false, {{ js_tag(scriptfile) }}
FILE_SUFFIX: '{{ file_suffix }}', {%- endfor %}
HAS_SOURCE: {{ has_source|lower }} {% else %}
<script type="text/javascript">
}; var DOCUMENTATION_OPTIONS = {
</script> URL_ROOT:'{{ url_root }}',
{%- block scripts %} VERSION:'{{ release|e }}',
{%- for scriptfile in script_files %} LANGUAGE:'{{ language }}',
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> COLLAPSE_INDEX:false,
{%- endfor %} FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
<script type="text/javascript" src="{{ pathto('_static/jquery-effects-core-and-slide.js', 1) }}"></script> HAS_SOURCE: {{ has_source|lower }},
<script type="text/javascript" src="{{ pathto('_static/jquery.cookie.js', 1) }}"></script> SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
<script type="text/javascript" src="{{ pathto('_static/kivy.js', 1) }}"></script> };
{%- endblock %} </script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- 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.cookie.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/kivy.js', 1) }}"></script>
{%- endblock %}
{%- if use_opensearch %} {%- if use_opensearch %}
<link rel="search" type="application/opensearchdescription+xml" <link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"