Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdocs build command prints deprecation warnings #81

Closed
volphy opened this issue Aug 3, 2023 · 8 comments
Closed

mkdocs build command prints deprecation warnings #81

volphy opened this issue Aug 3, 2023 · 8 comments
Labels
fixed The issue is fixed mkdocs Issue connected to mkdocs (evolution, etc.)

Comments

@volphy
Copy link

volphy commented Aug 3, 2023

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:

  • Python 3.11.4
  • mkdocs 1.5.1

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

@github-actions
Copy link

github-actions bot commented Aug 3, 2023

Thank you for your contribution! This is very appreciated.

fralau pushed a commit that referenced this issue Aug 3, 2023
@fralau fralau added mkdocs Issue connected to mkdocs (evolution, etc.) fixed The issue is fixed labels Aug 3, 2023
@fralau
Copy link
Owner

fralau commented Aug 3, 2023

Fixed in 1.0.6.

Please test and let me know?

@volphy
Copy link
Author

volphy commented Aug 4, 2023

Where can I find 1.0.6?

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

@fralau
Copy link
Owner

fralau commented Aug 4, 2023

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

@volphy
Copy link
Author

volphy commented Aug 4, 2023

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
Copy link
Owner

fralau commented Aug 4, 2023

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

@volphy
Copy link
Author

volphy commented Aug 4, 2023

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
Copy link
Owner

fralau commented Aug 4, 2023

Done! 🚀

@fralau fralau closed this as completed Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed The issue is fixed mkdocs Issue connected to mkdocs (evolution, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants