Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sphinxcontrib-lightbox2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sphinxcontrib-lightbox2

Sphinx extension to add lightbox2 to each figure and image added in HTML

  • 0.4.0
  • PyPI
  • Socket score

Maintainers
1

sphinxcontrib-lightbox2

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.

Installation

Install the package using

pip install sphinxcontrib-lightbox2

Add sphinxcontrib.lightbox2 to the list of extensions in your conf.py:

extensions = ["sphinxcontrib.lightbox2"]

Configuration

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 NameSphinx Option NameDefault Value
alwaysShowNavOnTouchDeviceslightbox2_always_show_nav_on_touch_devicesFalse
albumLabellightbox2_album_label"Image %1 of %2"
disableScrollinglightbox2_disable_scrollingFalse
fadeDurationlightbox2_fade_duration600
fitImagesInViewportlightbox2_fit_images_in_viewportTrue
imageFadeDurationlightbox2_image_fade_duration600
maxWidthlightbox2_max_widthNone
maxHeightlightbox2_max_heightNone
positionFromToplightbox2_position_from_top50
resizeDurationlightbox2_resize_duration700
showImageNumberLabellightbox2_show_image_number_labelTrue
wrapAroundlightbox2_wrap_aroundTrue

Examples

See the examples in the documentation.

FAQs


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc