Skip to content

Instantly share code, notes, and snippets.

@andreberg
Created January 20, 2021 18:32
Show Gist options
  • Save andreberg/da096bde6d7917bd05fd6aa35fd8f8c4 to your computer and use it in GitHub Desktop.
Save andreberg/da096bde6d7917bd05fd6aa35fd8f8c4 to your computer and use it in GitHub Desktop.
[Sphinx RTD Theme Search Fix] Fixes the hanging search. #python #documentation #docs #sphinx #read-the-docs #theme #bugfix

In site-packages\sphinx_rtd_theme > layout.html

After

{% if sphinx_version >= "1.8.0" %}
  	<script type="text/javascript" id="documentation_options" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/documentation_options.js', 1) }}"></script>

Add

<script type="text/javascript" id="language_data" data-url_root="{{ pathto('', 1) }}" src="{{ pathto('_static/language_data.js', 1) }}"></script>

so that the Stemmer javascript object can be found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment