-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
'$ is not defined' in readthedocs-doc-embed.js #9414
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
Comments
Hi, I think the material theme doesn't include jquery, so you need to add it https://www.mkdocs.org/user-guide/configuration/#extra_javascript. We are planning to inject jquery conditionally #9359. |
Thank you very much @stsewd - that solved that problem. Now if you'd just remind me how to get rid of the ethicalads.min.js crash "Error: No ad placements found". (I already unchecked the ads checkbox.)
|
@rfay where are you getting that error? Looks like you are testing the changes in a forked project, so not sure where to find it. Also, you can enable builds from PRs https://docs.readthedocs.io/en/stable/pull-requests.html for your project, so you don't need to use a fork to test things. |
That's in the console on https://test-ddev.readthedocs.io/en/latest/, which is being built from https://github.com/rfay/ddev/tree/20220707_docs2,, build is https://readthedocs.org/projects/test-ddev/builds/17382495/ (And thank you!) |
@davidfischer may have more information about that error. |
This definitely looks like a jquery should be there but isn't error. |
@davidfischer thanks for looking at this. I added jquery, got past the original issue. Now javascript errors out with the "ethicalads.min.js:1 Uncaught (in promise) Error: No ad placements found" as described in #9414 (comment) I assume that's an RTD problem right? I remember seeing it before long ago, don't remember a solution. |
Got it. I was confused.
Ahh. As you may know, RTD is funded with advertising and our ad client throws this error (probably should just be a warning) if there's nowhere to put an ad on the page. Are you seeing this on a public URL (eg. |
Thanks @davidfischer - It's a public RTD URL and details are in #9414 (comment) - you can easily see it yourself.
|
Got it. This shouldn't be logged as an error. I should be able to release a fix in a day or two. |
Awesome, thanks @davidfischer |
yeah, the original issue reported here should be fixed. For the other issue please subscribe to readthedocs/ethical-ad-client#130. |
Details
Expected Result
Normal processing without js errors. (When I run
mkdocs serve
and view the same site I do not have js errors in console.)Actual Result
In console:
Is there some need to inject jquery or something for RTD? I don't remember seeing this before.
The text was updated successfully, but these errors were encountered: