Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bed3f6

Browse files
committed
Fix searchindex.js loading by portingsphinx-doc/sphinx#6091
Hopefully a more future-proof fix, removing the dependency on ajax andsearchtools.js altogether. (After loading, searchindex.js itself doesdepend on searchtools.js, but both are updated with the version ofsphinx that is used, unlike this template.)Because the script is loaded with `defer` and also right at the end ofthe body, the size of searchindex.js should not block loading the restof the page (one of the arguments for using ajax).
1 parentadbc7b1 commit4bed3f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎doc/_templates/search.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,5 @@ <h2>{{ _('Search Results') }}</h2>
4141
{% endblock %}
4242
{% block footer %}
4343
{{ super() }}
44-
<scripttype="text/javascript">
45-
jQuery(function(){Search.loadIndex("searchindex.js");});
46-
</script>
47-
<scripttype="text/javascript"id="searchindexloader"></script>
44+
<scripttype="text/javascript"src="{{ pathto('searchindex.js', 1) }}"defer></script>
4845
{% endblock %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp