Skip to content

Commit

Permalink
Fix sphinx search
Browse files Browse the repository at this point in the history
Sphinx stopped loading language_data.js globally in 3.4.
This file now has to be loaded explicitly on the search page.

See

- sphinx-doc/sphinx#8445
- readthedocs/sphinx_rtd_theme#1021
  • Loading branch information
timhoffm committed Jan 11, 2021
1 parent 4e4410d commit 64e9ab5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/_templates/search.html
Expand Up @@ -3,6 +3,7 @@
{%- block scripts %}
{{ super() }}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/language_data.js', 1) }}"></script>
{%- endblock %}
{% block body %}
<h1 id="search-documentation">{{ _('Search') }}</h1>
Expand Down

0 comments on commit 64e9ab5

Please sign in to comment.