fralau / mkdocs-macros-plugin

Create richer and more beautiful pages in MkDocs, by using variables and calls to macros in the markdown code.
https://mkdocs-macros-plugin.readthedocs.io
Other
318 stars 50 forks source link

`DeprecationWarning` in mkdocs 1.5.0 for use of `warning_filter` #173

Closed johnthagen closed 1 year ago

johnthagen commented 1 year ago

https://github.com/fralau/mkdocs_macros_plugin/blob/f33011f324431731f26ac57f3910ffc217bc32b5/mkdocs_macros/util.py#L20

INFO    -  DeprecationWarning: warning_filter doesn't do anything since MkDocs 1.2 and will be removed soon. All messages on the `mkdocs` logger get counted automatically.
             File "lib/python3.10/site-packages/mkdocs_macros/util.py", line 20, in <module>
               from mkdocs.utils import warning_filter
             File "lib/python3.10/site-packages/mkdocs/utils/__init__.py", line 453, in __getattr__
               warnings.warn(

Environment

mkdocs                     1.5.0
mkdocs-htmlproofer-plugin  1.0.0
mkdocs-macros-plugin       1.0.2
mkdocs-material            9.2.0b2
mkdocs-material-extensions 1.1.1
mkdocs-video               1.5.0
github-actions[bot] commented 1 year ago

Welcome to this project and thank you!' first issue

fralau commented 1 year ago

@johnthagen Please check that it works for you?

johnthagen commented 1 year ago

@fralau Happy to check. I'll be available to check in a few days.

johnthagen commented 1 year ago

@fralau I can confirm this issue is resolved on the latest master branch.

In my Poetry project I specified:

mkdocs-macros-plugin = { git = "https://github.com/fralau/mkdocs_macros_plugin.git", branch = "master" }
mkdocs                     1.5.0
mkdocs-htmlproofer-plugin  1.0.0
mkdocs-macros-plugin       1.0.4
mkdocs-material            9.2.0b2
mkdocs-material-extensions 1.1.1
mkdocs-video               1.5.0

No DeprecationWarning was shown during mkdocs serve.

fralau commented 1 year ago

Pushed on pypi, v. 1.0.4.