ultrabug / mkdocs-static-i18n

MkDocs i18n plugin using static translation markdown files
https://ultrabug.github.io/mkdocs-static-i18n/
MIT License
235 stars 38 forks source link

DeprecationWarning: Do not access Theme._vars #314

Open joapuiib opened 2 months ago

joapuiib commented 2 months ago

Using this plugin (version 1.2.3) it gives me the following warning:

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File "/home/joapuiib/mkdocs/daw-ed/venv/lib64/python3.12/site-packages/mkdocs_static_i18n/reconfigure.py", line 157, in reconfigure_mkdocs_config
               PurePath(config.theme._vars.get("custom_dir", ".")) / PurePath("sitemap.xml")
             File "/home/joapuiib/mkdocs/daw-ed/venv/lib64/python3.12/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(
ultrabug commented 1 month ago

Hello, indeed @joapuiib that's something I am aware of too and that I will have to get rid of.

Thanks for the heads-up.