fralau / mkdocs-mermaid2-plugin

A Mermaid graphs plugin for mkdocs
https://mkdocs-mermaid2.readthedocs.io
MIT License
203 stars 25 forks source link

mkdocs build command prints deprecation warnings #81

Closed volphy closed 11 months ago

volphy commented 11 months ago

Whenever I run mkdocs build I receive similar warnings (redacted path to local files):

mkdocs build
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 "<local_path>/.venv/lib/python3.11/site-packages/mermaid2/util.py", line 8, in <module>
               from mkdocs.utils import warning_filter
             File "<local_path>/.venv/lib/python3.11/site-packages/mkdocs/utils/__init__.py", line 453, in __getattr__
               warnings.warn(

My environment:

Will logging be fixed in next releases of mkdocs-mermaid2-plugin?

github-actions[bot] commented 11 months ago

Thank you for your contribution! This is very appreciated.

fralau commented 11 months ago

Fixed in 1.0.6.

Please test and let me know?

volphy commented 11 months ago

Where can I find 1.0.6?

I cannot see it in PyPi: https://pypi.org/project/mkdocs-mermaid2-plugin/

fralau commented 11 months ago

@volphy Right now it is on github 🙂 (the procedure is to get some positive feedbacks, before deploying to PyPi).

volphy commented 11 months ago

I cannot find 1.0.6 tag here: https://github.com/fralau/mkdocs-mermaid2-plugin/tags

Should I use the latest commit from master branch?

fralau commented 11 months ago

Yes; sorry for the confusion (the version appears only on the setup.py).

volphy commented 11 months ago

I did a quick& dirty test in my venv environment. I have replaced 1.0.5 files with the files from master branch.

It worked. My site with Mermaid images have been generated properly without any warnings at build stage.

Feel free to publish 1.0.6 version 👍

fralau commented 11 months ago

Done! 🚀