From 7f68f19556c8d91eb45bed2f5e3b93f9d0b4e591 Mon Sep 17 00:00:00 2001 From: blueswen Date: Mon, 6 May 2024 22:30:16 +0800 Subject: [PATCH] v0.4.0 --- CHANGELOG | 8 ++++++++ README.md | 8 ++++++-- setup.py | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index c16bb2f..a2f852b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +mkdocs-glightbox-0.4.0 (2023-05-06) + + * Supported manual mode (#29) + * Allow calling lightbox methods from other places (#34) + * Added id to appended script tag (#38) + * Access theme attribute directly (#40) + * Better JavaScript Error Handling (#36) + mkdocs-glightbox-0.3.7 (2023-01-24) * Supported custom background and shadow (#27) diff --git a/README.md b/README.md index e0bb383..6ffe72b 100644 --- a/README.md +++ b/README.md @@ -71,11 +71,15 @@ GLightbox is a pure javascript lightbox library with mobile support. | caption_position | bottom | Default captions position. (bottom, top, left, right) | | background | white | The background CSS of lightbox image. The background will shown when the image is transparent. You can use any CSS value for the background for example `#74b9ff` or `Gainsboro` or `none` for nothing. | | shadow | true | Enable or disable the shadow of lightbox image. Disable it when the background is `none` to prevent shadow around the transparent image. | - | manual | false | When true, lightbox has to be enabled for each image manually by adding 'on-glb' class to it. | + | manual | false | When true, lightbox has to be enabled for each image manually by adding `on-glb` class to it or adding `glightbox: true` meta on page. | Check more options information on [GLightbox Docs](https://github.com/biati-digital/glightbox#lightbox-options). -5. For more flexibility, you can disable the lightbox with a [specific image](https://blueswen.github.io/mkdocs-glightbox/disable/image/) or a [specific page](https://blueswen.github.io/mkdocs-glightbox/disable/page/). +5. For more flexibility: + 1. [Disable by image](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-image.md): Disable the lightbox for specific images. Suitable for a few amount of images that don't need the lightbox effect. + 2. [Disable by page](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-page.md): Disable the lightbox for specific pages. Suitable for a few amount of pages that don't need the lightbox effect. + 3. [Enable by image](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-page-enable-by-image.md): Disable the lightbox for specific pages but enable some images on those pages. Suitable for a few amount of images that need the lightbox effect. + 4. [Disable globally but enable by image or page](https://blueswen.github.io/mkdocs-glightbox/flexibility/enable-by-image-or-page.md): Disable the lightbox globally but enable specific images or specific pages. Suitable for a large number of images or pages that don't need the lightbox effect. 6. Support lightbox image caption, check more details on [Caption](https://blueswen.github.io/mkdocs-glightbox/caption/caption/). 7. Support grouping images as galleries, check more details on [Gallery](https://blueswen.github.io/mkdocs-glightbox/gallery/gallery/). diff --git a/setup.py b/setup.py index 9b0ea03..b9edbf2 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name="mkdocs-glightbox", - version="0.3.7", + version="0.4.0", author="Blueswen", author_email="blueswen.tw@gmail.com", url="https://blueswen.github.io/mkdocs-glightbox",