mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved warning in social plugin about site_url
This commit is contained in:
parent
688c9de4c9
commit
914df5fe70
@ -114,8 +114,8 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
||||
# Check if site URL is defined
|
||||
if not config.site_url:
|
||||
log.warning(
|
||||
"The \"social\" plugin needs the \"site_url\" configuration "
|
||||
"option to be defined. It will likely not work correctly."
|
||||
"The \"site_url\" option is not set. The cards are generated, "
|
||||
"but not linked, so they won't be visible on social media."
|
||||
)
|
||||
|
||||
# Ensure presence of cache directory
|
||||
|
@ -114,8 +114,8 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]):
|
||||
# Check if site URL is defined
|
||||
if not config.site_url:
|
||||
log.warning(
|
||||
"The \"social\" plugin needs the \"site_url\" configuration "
|
||||
"option to be defined. It will likely not work correctly."
|
||||
"The \"site_url\" option is not set. The cards are generated, "
|
||||
"but not linked, so they won't be visible on social media."
|
||||
)
|
||||
|
||||
# Ensure presence of cache directory
|
||||
|
Loading…
Reference in New Issue
Block a user