Skip to content

Commit

Permalink
Merge pull request #978 from ix5/docs-search-fix
Browse files Browse the repository at this point in the history
[docs] Add jquery and make search work again
  • Loading branch information
ix5 authored Nov 28, 2023
2 parents 21ded32 + c78432c commit d01d881
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/_static/js/vendor/jquery-3.7.1.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{%- endif %}
{%- endmacro %}

<html>
<html{% if language is not none %} lang="{{ language }}"{% endif %} data-content_root="{{ content_root }}">
<head>
<meta charset="utf-8">
{{ metatags }}
Expand Down
3 changes: 2 additions & 1 deletion docs/_theme/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ <h1>Search</h1>
</header>
{% endblock %}
{% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] + ['_static/language_data.js'] %}
{% set script_files = script_files + ['_static/searchtools.js'] + ['_static/language_data.js']
+ ['_static/js/vendor/jquery-3.7.1.min.js'] %}
{% block footer %}
<script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
Expand Down

0 comments on commit d01d881

Please sign in to comment.