timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
208 stars 45 forks source link

DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly #145

Closed ethrgeist closed 2 months ago

ethrgeist commented 2 months ago

I'm using

and i am getting the following deprecation warning:

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File "/some/random/pyenv/pypoetry/virtualenvs/sillyproject-py3.12/lib/python3.12/site-packages/mkdocs_git_revision_date_localized_plugin/plugin.py", line 81, in on_config
               theme_locale = custom_theme._vars.get("language")
             File "/some/random/pyenv/pypoetry/virtualenvs/sillyproject-py3.12/lib/python3.12/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(
timvink commented 2 months ago

This should be fixed in #144 , making a new release now

timvink commented 2 months ago

Released: https://pypi.org/project/mkdocs-git-revision-date-localized-plugin/