Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix "To modify script_files in the theme is deprecated" warning with …
Browse files Browse the repository at this point in the history
…sphinx 2.2
  • Loading branch information
antonio-rojas committed Jan 28, 2020
1 parent 2cbd93e commit e759f94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/doc/common/themes/sage/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
#}
{% extends "layout.html" %}
{% set title = _('Search') %}
{% set script_files = script_files + ['_static/searchtools.js'] %}
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
{%- endblock %}
{% block extrahead %}
<script type="text/javascript">
jQuery(function() { Search.loadIndex("{{ pathto('searchindex.js', 1) }}"); });
Expand Down

0 comments on commit e759f94

Please sign in to comment.