* Sandro Tosi <[email protected]>, 2012-03-24, 22:03:
dh_sphinxdoc looks for the following string:
jQuery(function() { Search.loadIndex("searchindex.js"); });
This is how the search page would normally load search index. If the
line is not present it can mean that:
1) search.html is not what dh_spinxdoc thinks it is, or
2) the templates were inadvertently âcustomizedâ to the point the
index is not loaded (correctly).
Now, your page does this instead:
<script type="text/javascript" src="searchindex.js"></script>
This is how older versions of Sphinx used to load the index, and
accidentally this method still works. (Though I cannot guarantee it'll
continue to work in future versions of Sphinx.) If you insist, I can
âfixâ dh_sphinxdoc to recognize the other snippet as well.
Well, there was at least 2 requests for that, and either we fix all the
upstream code or dh_sphinxdoc is enhanced to recognize the old, but
still working, snippet. My preference is for the latter ;) but simply
because it requires just one place to be changed.
I was reluctant accept the second snippet, because if I do it now, I'll
have to support it basically forever. Supporting two snippets might
prove harder than supporting only one of them.
But I'll think about it.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]