Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
sphinxcontrib-lightbox2
Advanced tools
Sphinx extension to add lightbox2 to each figure and image added in HTML
Sphinx extension to add lightbox2 to each figure and image added in HTML.
Read the documentation on ReadTheDocs!
Usually Sphinx themes limit their content width to a limit to improve readability. This creates a problem for large images and diagrams which might be needed in technical documentation.
Install the package using
pip install sphinxcontrib-lightbox2
Add sphinxcontrib.lightbox2
to the list of extensions
in your conf.py:
extensions = ["sphinxcontrib.lightbox2"]
Lightbox2 offers different configuration options.
These options are exposed in sphinxcontrib-lightbox2
through options in the conf.py.
See the mapping of lightbox2 options to Sphinx options
Lightbox2 Option Name | Sphinx Option Name | Default Value |
---|---|---|
alwaysShowNavOnTouchDevices | lightbox2_always_show_nav_on_touch_devices | False |
albumLabel | lightbox2_album_label | "Image %1 of %2" |
disableScrolling | lightbox2_disable_scrolling | False |
fadeDuration | lightbox2_fade_duration | 600 |
fitImagesInViewport | lightbox2_fit_images_in_viewport | True |
imageFadeDuration | lightbox2_image_fade_duration | 600 |
maxWidth | lightbox2_max_width | None |
maxHeight | lightbox2_max_height | None |
positionFromTop | lightbox2_position_from_top | 50 |
resizeDuration | lightbox2_resize_duration | 700 |
showImageNumberLabel | lightbox2_show_image_number_label | True |
wrapAround | lightbox2_wrap_around | True |
See the examples in the documentation.
FAQs
Sphinx extension to add lightbox2 to each figure and image added in HTML
We found that sphinxcontrib-lightbox2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.