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

Remove dependency on jQuery #1546

Closed
kwsp opened this issue Dec 1, 2023 · 2 comments
Closed

Remove dependency on jQuery #1546

kwsp opened this issue Dec 1, 2023 · 2 comments
Labels
Bug A bug Needed: replication Bug replication is required

Comments

@kwsp
Copy link

kwsp commented Dec 1, 2023

Problem

jQuery was removed from Sphinx in ~2022 with the release of Sphinx 6.0.0.

I came across this because of broken search functionality at https://pydicom.github.io/pydicom/dev/index.html. I realised the problem is that jQuery is somehow not loaded so searchindex.js isn't loaded. However, this simple need to load a script is trivial in vanilla JS nowadays, as Sphinx by default uses.

If the maintainers don't want to remove jQuery for other downstream projects, at least we can start by porting some of the simply tasks to vanilla JS as Sphinx had done, so when jQuery breaks, it doesn't break the site.

@kwsp kwsp added Bug A bug Needed: replication Bug replication is required labels Dec 1, 2023
ajkerrigan added a commit to ajkerrigan/cloud-custodian that referenced this issue Aug 2, 2024
The Read the Docs theme for sphinx relies on jQuery in a few spots. It
looks like we already have a sphinxcontrib-jquery but weren't
referencing it as an extension in conf.py.

Adding this seems more "workaround" than fix - it may be worth following
the related upstream issue or monkeypatching our way around jQuery in
c7n-sphinxext.

See also: readthedocs/sphinx_rtd_theme#1546
ajkerrigan added a commit to ajkerrigan/cloud-custodian that referenced this issue Aug 2, 2024
The Read the Docs theme for sphinx relies on jQuery in a few spots. It
looks like we already have a sphinxcontrib-jquery dependency, but weren't
referencing it as an extension in conf.py.

Adding this seems more "workaround" than fix - it may be worth following
the related upstream issue or monkeypatching our way around jQuery in
c7n-sphinxext.

See also: readthedocs/sphinx_rtd_theme#1546
ajkerrigan added a commit to cloud-custodian/cloud-custodian that referenced this issue Aug 2, 2024
The Read the Docs theme for sphinx relies on jQuery in a few spots. It
looks like we already have a sphinxcontrib-jquery dependency, but weren't
referencing it as an extension in conf.py.

Adding this seems more "workaround" than fix - it may be worth following
the related upstream issue or monkeypatching our way around jQuery in
c7n-sphinxext.

See also: readthedocs/sphinx_rtd_theme#1546
@humitos
Copy link
Member

humitos commented Aug 12, 2024

We are depending on sphinxcontrib-jquery now, since this theme requires jQuery. Removing jQuery is not in our roadmap and we cannot prioritize it, but we would accept a PR for this. I think we can include it in the 4.0 release.

@humitos
Copy link
Member

humitos commented Aug 12, 2024

By the way, this is dup of #1253

@humitos humitos closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug Needed: replication Bug replication is required
Projects
None yet
Development

No branches or pull requests

2 participants