Skip to content

Lightbox feature for images in docs #237

@thibaudcolas

Description

@thibaudcolas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    In triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions