mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#5186 clean up JavaScript templates: doctools
move templating from `doctools` to `documentation_options`
This commit is contained in:
parent
a3189b460c
commit
d2a15f4035
@ -150,9 +150,9 @@ var Documentation = {
|
|||||||
this.fixFirefoxAnchorBug();
|
this.fixFirefoxAnchorBug();
|
||||||
this.highlightSearchWords();
|
this.highlightSearchWords();
|
||||||
this.initIndexTable();
|
this.initIndexTable();
|
||||||
{% if theme_navigation_with_keys|tobool %}
|
if (DOCUMENTATION_OPTIONS.NAVIGATION_WITH_KEYS) {
|
||||||
this.initOnKeyListeners();
|
this.initOnKeyListeners();
|
||||||
{% endif %}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
@ -5,5 +5,6 @@ var DOCUMENTATION_OPTIONS = {
|
|||||||
COLLAPSE_INDEX: false,
|
COLLAPSE_INDEX: false,
|
||||||
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
|
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
|
||||||
HAS_SOURCE: {{ has_source|lower }},
|
HAS_SOURCE: {{ has_source|lower }},
|
||||||
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
|
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}',
|
||||||
|
NAVIGATION_WITH_KEYS: {{ 'true' if theme_navigation_with_keys|tobool else 'false'}}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user