Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 715ac1d

Browse files
committed
Update to new way of generating Sphinx search box.
1 parent dab4054 commit 715ac1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/_templates/search.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
1010
words. Pages containing less words won't appear in the result
1111
list.{% endtrans %} If you want to limit your search to working code examples,
1212
include the keyword "codex" (mnemonic for <i>code example</i>) in your
13-
search, eg "codex ellipse";
13+
search, eg "codex ellipse";
1414
see <a href="{{ pathto('faq/howto_faq.html#search-examples') }}">search&nbsp;examples</a>.
1515
</p>
1616
<form action="" method="get">
@@ -38,5 +38,7 @@ <h2>{{ _('Search Results') }}</h2>
3838
{% endblock %}
3939
{% block footer %}
4040
{{ super() }}
41-
<script type="text/javascript" src="searchindex.js"></script>
41+
<script type="text/javascript">
42+
jQuery(function() { Search.loadIndex("searchindex.js"); });
43+
</script>
4244
{% endblock %}

0 commit comments

Comments
 (0)