mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 14:23:39 -04:00
Merge latests changes from Insiders
This commit is contained in:
@@ -477,19 +477,6 @@ class BlogPlugin(BasePlugin[BlogConfig]):
|
||||
|
||||
# Validate authors and throw if errors occurred
|
||||
errors, warnings = config.validate()
|
||||
if not config.authors and warnings:
|
||||
log.warning(
|
||||
f"Action required: the format of the authors file changed.\n"
|
||||
f"All authors must now be located under the 'authors' key.\n"
|
||||
f"Please adjust '{file}' to match:\n"
|
||||
f"\n"
|
||||
f"authors:\n"
|
||||
f" squidfunk:\n"
|
||||
f" avatar: https://avatars.githubusercontent.com/u/932156\n"
|
||||
f" description: Creator\n"
|
||||
f" name: Martin Donath\n"
|
||||
f"\n"
|
||||
)
|
||||
for _, w in warnings:
|
||||
log.warning(w)
|
||||
for _, e in errors:
|
||||
|
||||
@@ -53,8 +53,8 @@ class GroupPlugin(BasePlugin[GroupConfig]):
|
||||
# little hacky, but has huge potential making plugin configuration easier.
|
||||
# There's one little caveat: the `__init__` and `on_startup` methods of the
|
||||
# plugins that are part of the group are called after all other plugins, so
|
||||
# the `event_priority` decorator for `on_startup` events and is effectively
|
||||
# useless. However, the `on_startup` event is only intended to set up the
|
||||
# the `event_priority` decorator for `on_startup` methods is effectively
|
||||
# useless. However, the `on_startup` method is only intended to set up the
|
||||
# plugin and doesn't receive anything else than the invoked command and
|
||||
# whether we're running a dirty build, so there should be no problems.
|
||||
@event_priority(150)
|
||||
|
||||
Reference in New Issue
Block a user