blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

Deprecation warning from mkdocs 1.6.0 #40

Closed FredZinelli closed 1 month ago

FredZinelli commented 2 months ago

Hello,

I just wanted to bring to your attention that, with the latest update of mkdocs, your plugin triggers a deprecation warning:

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File ".../.venv/lib/python3.8/site-packages/mkdocs_glightbox/plugin.py", line 104, in on_post_page
               if self.using_material or "navigation.instant" in config["theme"]._vars.get(
             File ".../.venv/lib/python3.8/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(

Thanks for the plugin, Kind regards, Fred

AdrianDsg commented 2 months ago

@blueswen Thanks for fixing this and maintaining this great project. Is there already an ETA available for the next release?

blueswen commented 2 months ago

The updated version is already released on v0.4.0 🎉.