-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Inlcuding jquery.js in layout.html #1501
Labels
Support
Support question
Comments
Just want to let you know this will not be anymore because trouble found
them and they won't be able to do this ever again because of the bad they
was doing with this you should never take what is not yours because it will
catch up to you every time.
Randy
…On Sun, Aug 13, 2023, 2:11 PM kapooramit ***@***.***> wrote:
I am trying to follow the instruction to include jquery.js in the
layout.html by adding the following lines to the layout.html in the .
{%- block scripts %}
<script src="{{ pathto('_static/jquery.js', resource=True) }}"></script>
<script src="{{ pathto('_static/underscore.js', resource=True) }}"></script>
{{ super() }}
{%- endblock %}
[sphinx-doc/sphinx#7405
<sphinx-doc/sphinx#7405>]
However, the above code causes the output HTML to throw the double script
block error. If I remove {{super()}}, I get $ is not defined, followed by
jquery is not defined.
What am I doing wrong? I want to include jquery and underscore in the
custom RTD theme.
—
Reply to this email directly, view it on GitHub
<#1501>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A34DZVDXIZZ6URXGDW7JFP3XVEKEZANCNFSM6AAAAAA3OZPJQQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@nienn : Can you suggest? |
Read the Docs theme already includes jQuery. You should only include underscore on yours. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to follow the instruction to include jquery.js in the layout.html by adding the following lines to the layout.html in the
<head>
.[https://github.com/sphinx-doc/sphinx/issues/7405]
However, the above code causes the output HTML to throw the double script block error. If I remove {{super()}}, I get $ is not defined, followed by jquery is not defined.
What am I doing wrong? I want to include jquery and underscore in my custom RTD theme.
The text was updated successfully, but these errors were encountered: