Files
scikit-image/debian/patches/search-html.patch
T
Julian Taylor 7e13028ca0 update packaging to use dh_sphinxdoc and dh_python2
requires search-html.patch to fix file so dh_sphinxdoc recognises it
2013-06-10 21:21:21 +02:00

22 lines
909 B
Diff

Description: change to ajax load of searchindex
required so dh_sphinx recognises it as a search.html
--- a/doc/source/themes/scikit-image/search.html
+++ b/doc/source/themes/scikit-image/search.html
@@ -10,7 +10,15 @@
{% extends "layout.html" %}
{% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] %}
-{% set script_files = script_files + ['searchindex.js'] %}
+{% block extrahead %}
+ <script type="text/javascript">
+ jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
+ </script>
+ {# this is used when loading the search index using $.ajax fails,
+ such as on Chrome for documents on localhost #}
+ <script type="text/javascript" id="searchindexloader"></script>
+ {{ super() }}
+{% endblock %}
{% block body %}
<h1 id="search-documentation">{{ _('Search') }}</h1>
<div id="fallback" class="admonition warning">