Lightbox support for images
See original GitHub issueHello,
I wanted to add the Sphinx plugin sphinxcontrib.images for lightbox support improving the preview of images.
Following the instructions on the website, I added the following to my _config.yaml
:
sphinx:
extra_extensions:
- sphinxcontrib.images
config:
images_config:
override_image_directive: true
This results in the following entries of the conf.py
:
...
images_config = {'override_image_directive': True}
...
Unfortunately, this doesn’t show any effect on the rendered page. Any ideas what I do wrong or what I miss here? Thanks a lot in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Lightbox for Images
A lightbox is an overlay that goes over the site and shows the larger version of the image when a reader clicks on...
Read more >Setting images to open in a lightbox
A lightbox is a design effect that opens an image in a centered overlay and dims the rest of the page when an...
Read more >Lightbox for Gallery & Image Block - Plugins
Image captions support; Responsive; Supports swipe gestures; Around 13 KB, 7 KB gzipped. Works with. Gallery Block (Default Block); Image Block ...
Read more >Image Lightbox
An image lightbox is a multi-functional plugin that handles both image galleries and image "magnification". These use cases used to be covered by...
Read more >Lightbox Images & Videos for WordPress
This plugin supports the display of many types of content – including images, videos, links, inline content, and HTML. Overall, Responsive ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @choldgraf. No, I haven’t tried yet. Also, I never used pure Sphinx before. Just stumbled upon jupyterbook recently. I would first need to familiarize myself with Sphinx. I can do that but at the earliest sometime next week.
Hi @choldgraf, I just realized that this issue is still open and that I didn’t come back with an update. Sorry about that. The issue remains for Jupyter book: The lightbox works with the
thumbnail
directive but not with any other (image
,figure
, etc.) directive. And, I can confirm that it is working expectedly with “regular” Sphinx (both with thethumbnail
and theimages
directive) unless I activate thenbsphinx
extension. Then the image doesn’t open in a LightBox object anymore but as a new URI instead (for both directives).