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 results shows up with Please activate JavaScript ... error #132

Open
pradeepchawda opened this issue Jan 20, 2023 · 10 comments
Open

Comments

@pradeepchawda
Copy link

We have been facing issue with one of the repo where even if javascript is enabled it shows the warning as well as results.

Is this a known issue? If yes, what is is recommended fix? If not, then can any one suggest a fix.

image

@bashtage
Copy link
Owner

Not sure why you are seeing this. I don't see it. Which browser? Does the same happen when you use a private window (no extensions)?

@pradeepchawda
Copy link
Author

Its safari Version 16.2 (18614.3.7.1.5). Also it happens in private window.

@bashtage
Copy link
Owner

Do you see it here? https://www.statsmodels.org/stable/search.html?q=ARMAX

@pradeepchawda
Copy link
Author

No. Also it happens only in a specific repo and other repo is working fine. I checked the conf.py and version its the same.

@pradeepchawda
Copy link
Author

It does not happen in local but in gitlab pages

@macreeeeee
Copy link

I have also encountered this problem. After my testing, I found that the issue does not occur when using Sphinx version less than 6.0. Should sphinx-material consider compatibility with the new version of Sphinx🤣?

@pradeepchawda
Copy link
Author

yes, it got fixed after i downgraded to 5.3

@rgommers
Copy link

This indeed looks like a bug in this theme, in combination with a newer Sphinx version. It's visible also in the docs of this theme itself, and it shows up when using support for multiple versions of the docs:

It indeed doesn't show up for statsmodels, probably because it uses the JS file version switching rather than the conf.py method: https://bashtage.github.io/sphinx-material/devel/customization.html#using-a-javascript-file.

@rgommers
Copy link

The problematic fallback code lives here:

{% trans %}Please activate JavaScript to enable the search
. My JS foo is very weak, so not sure how Sphinx 6.x changes could affect that code.

@rgommers
Copy link

rgommers commented Mar 5, 2024

Looks like the issue is that Sphinx 5.0 and later no longer ship jQuery. Installing sphinxcontrib-jquery made the problem disappear.

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

No branches or pull requests

4 participants