Skip to content
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

Lightbox feature for images in docs #237

Open
thibaudcolas opened this issue Nov 1, 2022 · 0 comments
Open

Lightbox feature for images in docs #237

thibaudcolas opened this issue Nov 1, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@thibaudcolas
Copy link
Member

We often have screenshots in our documentation, and other illustrative images, for example as part of the tutorial. It would be nice if we allowed viewing those images in a lightbox-style interface, so the images are easier to look at.

For example, on our Getting Started page of the tutorial, we have this screenshot: https://docs.wagtail.org/en/stable/_images/tutorial_2.png

The screenshot is 1280px in width, but will only be displayed at 680px when the viewport width is 1280px. This makes it hard to read the text (which our images often have a lot of) – so a lightbox that displays the image anywhere closer to 1280px would be ideal.


The implementation should be done in a way that we don’t have to create the content any differently – just find images in the docs as they are rendered now, and initialise the extra functionality on top.

@thibaudcolas thibaudcolas added the enhancement New feature or request label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant