File: 60_new_syntax_to_load_searchindex.patch

package info (click to toggle)
matplotlib 1.1.1~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 66,076 kB
  • sloc: python: 90,600; cpp: 69,891; objc: 5,231; ansic: 1,723; makefile: 171; sh: 7
file content (17 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: use recent sphinx syntax to load searchindex.js, so dh_sphinxdoc can recognize it
Author: Sandro Tosi <morph@debian.org>
Forwarded: yes
Bug: https://github.com/matplotlib/matplotlib/issues/820
Index: matplotlib-1.1.1~rc1/doc/_templates/search.html
===================================================================
--- matplotlib-1.1.1~rc1.orig/doc/_templates/search.html	2012-03-23 02:58:28.000000000 +0100
+++ matplotlib-1.1.1~rc1/doc/_templates/search.html	2012-04-08 16:03:22.404159237 +0200
@@ -38,5 +38,7 @@
 {% endblock %}
 {% block footer %}
   {{ super() }}
-  <script type="text/javascript" src="searchindex.js"></script>
+  <script type="text/javascript">
+    jQuery(function() { Search.loadIndex("searchindex.js"); });
+  </script>
 {% endblock %}