-
Notifications
You must be signed in to change notification settings - Fork 17
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
The included version of the default LightBox2 backend is triggering dependabot alerts #26
Comments
Fine suggestion. I don't see why we should not update it. It is indeed a submodule and it checks out an old version of the plugin. |
I wonder if we should update it now (and forget about again for another 7 years) or if we should make the submodule track HEAD of lightbox2. There are currently no tests which verify that the produced html (with lightbox2 javascript and styles) actually works, i.e. that the images popup when clicked... |
I tend to use the former (use a fixed version) in that way you know when a problem suddenly surfaces that it can not be some lightbox update. |
Yes, that is the advantage of a fixed version. The advantage of using HEAD of a suitable branch is it will be updated whenever there is a new release. But, as new releases are infrequent we can not count on those keeping lightbox2 up to date anyway. I will update it to a new fixed version for now. |
Yeah, it's a tricky issue. Do you have Dependabot alerts set up for this repo? At least then you would be alerted to an issue found in a fixed version, even if you are not tracking HEAD. I have the sphinx build product committed in our repo so we can serve out our docs internally, and that's what triggered Dependabot. I'm not sure if including a submodule the way you are would even trigger it....! |
I wonder if we could, or should, use the jQuery which is distributed with sphinx. Currently Sphinx distribute jQuery 3.5.1. Create a new sphinx project, build the HTML and you'll see
It appears easiest to keep it the way it currently is; sphinx-contrib images distribute its own jquery, but it feels a bit redundant ...
|
My tests (July 2021) with
can be reduced to the following and lightbox2 still works:
However, there seems to be a proposal to remove jQuery as a dependency for Sphinx: sphinx-doc/sphinx#7405 . So I think it seem safer to ship jQuery with sphinxcontrib-images... |
@cd-rite The jquery-1.11.0.min.js which is included with sphinxcontrib-images at present comes from Now lightbox2 ships with a Would dependabot still work for you if we started shipping |
@jonascj I think that should work! Thanks! |
0.9.4 released with the updated version of Lightbox2 and hence jQuery. |
It seems like the included version of LightBox2 is pointed at a specific, very old commit, which includes an old version of jquery.
The newer versions of LightBox2 use later versions of jquery.
Actually, It looks like it's a git submodule that was committed 7 years ago and has not been updated since....
The text was updated successfully, but these errors were encountered: