-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Deprecation warning in tags plugin after upgrading MkDocs to 1.6 #7119
Comments
I'm also seeing similar warnings on
|
Thanks for reporting. Yes, those deprecation warnings are from MkDocs 1.6. It's a good idea to report the warning for the |
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. |
The privacy plugin should also be fixed in ff49d74. If not, please create a new issue with a minimal reproduction ✌️ |
Released as part of 9.5.20. |
Reading the stack trace, this comes from the git-revision-date-localized-plugin. Please report it upstream. |
FYI, new release is now on pypi https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/releases/tag/v1.2.5 |
Thank you ^^ |
Awesome, thanks for fixing this so quickly, Tim! |
Context
When using the Tags plugin i got an exception when i set the tags index (
tags_file
option inmkdocs.yml
). duringmkdocs build
ormkdocs serve
It generate anINFO
entry in the logger about aDeprecationWarning
exception.Here are the used packages :
Bug description
At the beggining of the
build/serve
process it give the exception : "DeprecationWarning: To replace an existing file, callremove
beforeappend
.".Here is the exact exception :
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /mnt/f/projects/mkdocs-plugins/testing-ground/site
INFO - DeprecationWarning: To replace an existing file, call
remove
beforeappend
.File ".../material/plugins/tags/plugin.py", line 132, in _get_tags_file
files.append(file)
File ".../mkdocs/structure/files.py", line 100, in append
warnings.warn(
INFO - Documentation built in 0.71 seconds
$
without the
tags_file
option set inmkdocs.yml
there is no such exceptionRelated links
Reproduction
9.5.19-tags-plugin-deprecationwarning-exception.zip
Steps to reproduce
tags
with thetags_file
option in anmkdocs
project withmkdocs-material
mkdocs build
ormkdocs serve
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: