Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search broken with read the docs theme in 3.4.1 #8591

Closed
jenshnielsen opened this issue Dec 26, 2020 · 1 comment
Closed

Search broken with read the docs theme in 3.4.1 #8591

jenshnielsen opened this issue Dec 26, 2020 · 1 comment
Labels

Comments

@jenshnielsen
Copy link
Contributor

To Reproduce
Build your docs using Sphinx 3.4.1 and sphinx-rtd-theme 0.5.0
Open the search page and try to search for something.
The spinner keeps spinning and no results are returned.
Opening the javascript console shows:

Uncaught ReferenceError: Stemmer is not defined
    query file:///C:/Users/Jens-work/source/repos/Qcodes/docs/_build/html/_static/searchtools.js:158
    setIndex file:///C:/Users/Jens-work/source/repos/Qcodes/docs/_build/html/_static/searchtools.js:98
    <anonymous> file:///C:/Users/Jens-work/source/repos/Qcodes/docs/_build/html/searchindex.js:1

Which is new compared to Sphinx 3.3.1

Building with Sphinx 3.3.1 or using the Alabaster theme and search works as expected.
I am not sure if this is a bug in Sphinx or the Read the docs theme.

Expected behavior

Search works as in 3.3.1

Your project
Qcodes build from this branch microsoft/Qcodes#2560

Screenshots

Screenshot 2020-12-26 131415

Environment info

  • OS: Windows 10
  • Python version: 3.7.9
  • Sphinx version: 3.4.1
  • Sphinx extensions: extensions = ['nbsphinx', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary',
    'sphinx.ext.napoleon', 'sphinx-jsonschema', 'sphinx.ext.doctest',
    'sphinx.ext.intersphinx', 'sphinx.ext.todo',
    'sphinx.ext.coverage', 'sphinx.ext.mathjax',
    'sphinx.ext.viewcode', 'sphinx.ext.githubpages',
    'sphinx.ext.todo']
  • Extra tools: Firefox/Edge sphinx_rtd_theme==0.5.0
@jenshnielsen
Copy link
Contributor Author

jenshnielsen commented Dec 27, 2020

This seems to already be fixed by readthedocs/sphinx_rtd_theme#1021 so there is probably not much that can be done from the sphinx side

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant