question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lightbox support for images

See original GitHub issue

Hello, 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:open
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
markusritschelcommented, Dec 2, 2020

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.

0reactions
markusritschelcommented, Nov 23, 2022

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 the thumbnail and the images directive) unless I activate the nbsphinx extension. Then the image doesn’t open in a LightBox object anymore but as a new URI instead (for both directives).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found