Skip to content

Commit

Permalink
BUG: Fix for Sphinx 3.4+ search (#213)
Browse files Browse the repository at this point in the history
Our version of readthedocs/sphinx_rtd_theme#1021 to fix issues due to sphinx-doc/sphinx#8623, i.e., `search.html` not actually searching due to `Uncaught ReferenceError: Stemmer is not defined` in Sphinx 3.4+.

Closes #214 
Closes #220
  • Loading branch information
larsoner committed Jan 24, 2022
1 parent 2328aa0 commit 0d80bff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sphinx_bootstrap_theme/bootstrap/search.html
Expand Up @@ -10,8 +10,9 @@
{%- extends "layout.html" %}
{% set title = _('Search') %}
{% block extrahead %}
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }} "></script>
<script type="text/javascript" src="{{ pathto('searchindex.js', 1) }} "></script>
<script type="text/javascript" src="{{ pathto('_static/searchtools.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/language_data.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('searchindex.js', 1) }}"></script>
{# this is used when loading the search index using $.ajax fails,
such as on Chrome for documents on localhost #}
<script type="text/javascript" id="searchindexloader"></script>
Expand Down

0 comments on commit 0d80bff

Please sign in to comment.