update packaging to use dh_sphinxdoc and dh_python2

requires search-html.patch to fix file so dh_sphinxdoc recognises it
This commit is contained in:
Julian Taylor
2013-06-10 21:21:21 +02:00
parent ce3a583313
commit 7e13028ca0
6 changed files with 30 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
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">