Merge pull request #4916 from remyabel/4915_fixurlroot

Fix blank URL_ROOT
This commit is contained in:
Takeshi KOMIYA 2018-05-15 21:54:44 +09:00 committed by GitHub
commit b7b1db0f18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@
{%- endmacro %}
{%- macro script() %}
<script type="text/javascript" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>
<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 %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}

View File

@ -1,5 +1,5 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '{{ url_root }}',
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '{{ release|e }}',
LANGUAGE: '{{ language }}',
COLLAPSE_INDEX: false,