Giter VIP home page Giter VIP logo

Comments (10)

timvink avatar timvink commented on May 29, 2024 2

FYI, new release is now on pypi https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.5

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024 1

Fixed in cff4a75. I checked the release notes of 1.6, and either I'm not seeing it, or there was no mention of the fact that the files collection seems to have undergone a refactoring, inducing those deprecations. I'll check if I can reproduce the problem with the privacy plugin, or if we need a reproduction for that.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024 1

Reading the stack trace, this comes from the git-revision-date-localized-plugin. Please report it upstream.

from mkdocs-material.

perpil avatar perpil commented on May 29, 2024

I'm also seeing similar warnings on mkdocs_git_revision_date_localized_plugin and the privacy plugins. If you'd like a separate issue for these, let me know and I'll cut one.

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs_git_revision_date_localized_plugin/plugin.py", line 82, in on_config
               theme_locale = custom_theme._vars.get("locale")
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(
INFO    -  DeprecationWarning: To replace an existing file, call `remove` before `append`.
             File "<snip>/mkdocs-material/material/plugins/privacy/plugin.py", line 445, in _queue
               self.assets.append(file)
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/structure/files.py", line 100, in append
               warnings.warn(

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024

Thanks for reporting. Yes, those deprecation warnings are from MkDocs 1.6. It's a good idea to report the warning for the git-revision-date-localized-plugin upstream, if you can spare some time. I'll take care of the other warnings. Note that they do not impact the build, so you can just ignore them for now.

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024

The privacy plugin should also be fixed in ff49d74. If not, please create a new issue with a minimal reproduction ✌️

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024

Released as part of 9.5.20.

from mkdocs-material.

HotCakeX avatar HotCakeX commented on May 29, 2024

I'm also seeing similar warnings on mkdocs_git_revision_date_localized_plugin and the privacy plugins. If you'd like a separate issue for these, let me know and I'll cut one.

INFO    -  DeprecationWarning: Do not access Theme._vars, instead access the keys of Theme directly.
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs_git_revision_date_localized_plugin/plugin.py", line 82, in on_config
               theme_locale = custom_theme._vars.get("locale")
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/theme.py", line 87, in _vars
               warnings.warn(
INFO    -  DeprecationWarning: To replace an existing file, call `remove` before `append`.
             File "<snip>/mkdocs-material/material/plugins/privacy/plugin.py", line 445, in _queue
               self.assets.append(file)
             File "/opt/homebrew/lib/python3.10/site-packages/mkdocs/structure/files.py", line 100, in append
               warnings.warn(

Hi,
I'm still seeing this on version 9.5.20, i personally don't know the technical details behind this warning message to report it to their repo in a proper detailed issue, because to me they're just abnormal warnings.

image

from mkdocs-material.

HotCakeX avatar HotCakeX commented on May 29, 2024

Thank you ^^
updating!

from mkdocs-material.

squidfunk avatar squidfunk commented on May 29, 2024

Awesome, thanks for fixing this so quickly, Tim!

from mkdocs-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.