fix: search functionality in search.html
The search feature was broken due to missing required JavaScript files from the Sphinx basic theme. Add loading of missing required JavaScript files. Closes-Bug: #2099816 Change-Id: Iab4914917b4a73b1207d5eee2d98ad91aa4485e9 Signed-off-by: Mehdi Nassim KHODJA <khodjamehdinassim@gmail.com>
This commit is contained in:
parent
c4e68fb209
commit
efe4c7baec
@ -11,6 +11,7 @@
|
|||||||
{% set title = _('Search') %}
|
{% set title = _('Search') %}
|
||||||
{% block extrahead %}
|
{% block extrahead %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
<script src="{{ pathto('searchindex.js', 1) }}" defer="defer"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div id="fallback" class="admonition warning">
|
<div id="fallback" class="admonition warning">
|
||||||
@ -34,9 +35,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script_footer %}
|
{% block script_footer %}
|
||||||
<script>
|
{{ super() }}
|
||||||
jQuery(function() { Search.loadIndex("searchindex.js"); });
|
<script src="{{ pathto('_static/searchtools.js', 1) }}"></script>
|
||||||
</script>
|
<script src="{{ pathto('_static/language_data.js', 1) }}"></script>
|
||||||
|
|
||||||
<script id="searchindexloader"></script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user