mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Support sphinx 4.2
Add the sphinx documentation options provided by sphinx 4.2. Otherwise the search will produce URLs with `undefined` instead of `.html`: ``` ref/states/all/salt.states.fileundefined?highlight=file#module-salt.states.file ``` Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
This commit is contained in:
parent
50a1743201
commit
1f66021d56
1 changed files with 6 additions and 1 deletions
7
doc/_themes/saltstack/layout.html
vendored
7
doc/_themes/saltstack/layout.html
vendored
|
@ -74,9 +74,14 @@
|
|||
var DOCUMENTATION_OPTIONS = {
|
||||
URL_ROOT: '{{ url_root }}',
|
||||
VERSION: '{{ release|e }}',
|
||||
LANGUAGE: '{{ language }}',
|
||||
COLLAPSE_INDEX: false,
|
||||
BUILDER: '{{ builder }}',
|
||||
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
|
||||
HAS_SOURCE: {{ has_source|lower }}
|
||||
LINK_SUFFIX: '{{ link_suffix }}',
|
||||
HAS_SOURCE: {{ has_source|lower }},
|
||||
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}',
|
||||
NAVIGATION_WITH_KEYS: {{ 'true' if theme_navigation_with_keys|tobool else 'false'}}
|
||||
};
|
||||
</script>
|
||||
{%- for scriptfile in script_files %}
|
||||
|
|
Loading…
Add table
Reference in a new issue