Added mkdocs-glightbox as a recommended plugin (#4130)

This commit is contained in:
Blueswen 2022-07-17 18:13:18 +08:00 committed by GitHub
parent 3e34acca74
commit 7d45104e7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,3 +152,18 @@ hash fragment to the image URL:
[color palette toggle]: ../setup/changing-the-colors.md#color-palette-toggle [color palette toggle]: ../setup/changing-the-colors.md#color-palette-toggle
[Zelda light world]: ../assets/images/zelda-light-world.png#only-light [Zelda light world]: ../assets/images/zelda-light-world.png#only-light
[Zelda dark world]: ../assets/images/zelda-dark-world.png#only-dark [Zelda dark world]: ../assets/images/zelda-dark-world.png#only-dark
## Lightbox
The [mkdocs-glightbox](https://github.com/blueswen/mkdocs-glightbox) plugin supports adding the lightbox(zoom) effect on all image in each page with [GLightbox](https://github.com/biati-digital/glightbox). As always, it can be installed with pip:
```bash
pip install mkdocs-glightbox
```
Then, add the following lines to mkdocs.yml:
```mk
plugins:
- glightbox
```