10000 DOC: add SOURCELINK_SUFFIX for compatibility with Sphinx 1.5 · matplotlib/matplotlib@53e6bc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53e6bc4

Browse files
committed
DOC: add SOURCELINK_SUFFIX for compatibility with Sphinx 1.5
With Sphinx 1.5, this is needed by searchtools.js to display the source snippets (see sphinx-doc/sphinx#2454). With earlier Sphinx versions, this is a no-op because the undefined variable will evaluate to an empty string.
1 parent 0cab7c6 commit 53e6bc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/_templates/layout.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ <h3>{{ _('Navigation') }}</h3>
8282
VERSION: '{{ release|e }}',
8383
COLLAPSE_INDEX: false,
8484
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
85-
HAS_SOURCE: {{ has_source|lower }}
85+
HAS_SOURCE: {{ has_source|lower }},
86+
SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
8687
};
8788
</script>
8889
{%- for scriptfile in script_files %}

0 commit comments

Comments
 (0)
0