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 function broken in 2.0.0 #6244
Comments
@jobec what theme have you used? I'd like to reproduce the error. |
|
Going to the default theme seems to make the error go away. |
Thank you for info. Absolutely this is a bug of Sphinx. I'll take a look #6091 later. |
Fix #6244: html: Search function is broken with 3rd party themes
Fixed by #6257. |
Thanks for your work on this @tk0miya, but I'd like to suggest that we re-open this issue. I have noticed that search function is still broken for me, even with the 2.0.1 release. I am using a theme that's based on the older I am noticing that the behaviour of the basic Looking in Firefox's browser console, I'm consistently seeing this error arise from searchtools.js:
I have also noticed that the search results I see in Chrome when it works with the local files don't show any more context than the bold single line entries in the search (i.e. they don't show any context from the 'source' files that are copied over in the build). This leads me to wonder whether there's an issue in picking through the "source files" looking for context? I have done some simple debugging on my end by starting with the 1.8.5 searchtools.js (which works, even when used with Sphinx v2) and slowly adding stuff from the Sphinx v2 version of searchtools, and I believe that I have determined that the problem with search lies in the use of the
|
My skills with javascript and front-end stuff aren't so strong; I hope I've given enough information that we can re-open this issue as not really fixed, and have further investigation? I believe that it's not as simple as that the search index isn't successfully loading... |
@ViktorHaag Sorry for missing your comment. I filed #6387 as a new issue. Please watch it please. |
Describe the bug
When searching in the built HTML file, no results are diplayed and only "Searching..." is showing.
The browser console shows:
Looks like a regression from #467
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Search is working
Your project
Even an empty index.rst does it.
Screenshots
Environment info
The text was updated successfully, but these errors were encountered: