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,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>