mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed deprecation warning in tags plugin
This commit is contained in:
parent
edcc5362fe
commit
cff4a75d15
@ -128,7 +128,11 @@ class TagsPlugin(BasePlugin[TagsConfig]):
|
|||||||
log.error(f"Tags file '{path}' does not exist.")
|
log.error(f"Tags file '{path}' does not exist.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Add tags file to files
|
# Add tags file to files - note: since MkDoc 1.6, not removing the
|
||||||
|
# file before adding it to the end will trigger a deprecation warning
|
||||||
|
# The new tags plugin does not require this hack, so we're just going
|
||||||
|
# to live with it until the new tags plugin is released.
|
||||||
|
files.remove(file)
|
||||||
files.append(file)
|
files.append(file)
|
||||||
return file
|
return file
|
||||||
|
|
||||||
|
@ -128,7 +128,11 @@ class TagsPlugin(BasePlugin[TagsConfig]):
|
|||||||
log.error(f"Tags file '{path}' does not exist.")
|
log.error(f"Tags file '{path}' does not exist.")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
# Add tags file to files
|
# Add tags file to files - note: since MkDoc 1.6, not removing the
|
||||||
|
# file before adding it to the end will trigger a deprecation warning
|
||||||
|
# The new tags plugin does not require this hack, so we're just going
|
||||||
|
# to live with it until the new tags plugin is released.
|
||||||
|
files.remove(file)
|
||||||
files.append(file)
|
files.append(file)
|
||||||
return file
|
return file
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user