[Python-modules-commits] [sphinx-rtd-theme] 01/01: d/p/sourcelink-suffix.patch: add compatibility with searchtools of Sphinx 1.5.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Wed Feb 1 19:35:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository sphinx-rtd-theme.
commit e135b37bc3e3f099cac607559706a1bc55125389
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Wed Feb 1 22:33:02 2017 +0300
d/p/sourcelink-suffix.patch: add compatibility with searchtools of Sphinx 1.5.
Backported from upstream.
Git-Dch: Full
---
debian/patches/series | 1 +
debian/patches/sourcelink-suffix.patch | 30 ++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index e720641..fc4479a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
do-not-require-sphinx.patch
theme-path.patch
+sourcelink-suffix.patch
diff --git a/debian/patches/sourcelink-suffix.patch b/debian/patches/sourcelink-suffix.patch
new file mode 100644
index 0000000..8f7511b
--- /dev/null
+++ b/debian/patches/sourcelink-suffix.patch
@@ -0,0 +1,30 @@
+Description: add missing SOURCELINK_SUFFIX
+ Adds DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX which is expected by the
+ searchtools.js.
+Origin: upstream, https://github.com/snide/sphinx_rtd_theme/commit/a5e0e304d30ed7aa
+Last-Update: 2017-02-01
+
+--- a/sphinx_rtd_theme/layout.html
++++ b/sphinx_rtd_theme/layout.html
+@@ -167,7 +167,8 @@
+ VERSION:'{{ release|e }}',
+ COLLAPSE_INDEX:false,
+ FILE_SUFFIX:'{{ '' if no_search_suffix else file_suffix }}',
+- HAS_SOURCE: {{ has_source|lower }}
++ HAS_SOURCE: {{ has_source|lower }},
++ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
+ };
+ </script>
+ {%- for scriptfile in script_files %}
+--- a/sphinx_rtd_theme/layout_old.html
++++ b/sphinx_rtd_theme/layout_old.html
+@@ -91,7 +91,8 @@
+ VERSION: '{{ release|e }}',
+ COLLAPSE_INDEX: false,
+ FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
+- HAS_SOURCE: {{ has_source|lower }}
++ HAS_SOURCE: {{ has_source|lower }},
++ SOURCELINK_SUFFIX: '{{ sourcelink_suffix }}'
+ };
+ </script>
+ {%- for scriptfile in script_files %}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx-rtd-theme.git
More information about the Python-modules-commits
mailing list