mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed info plugin latest version check for Insiders
This commit is contained in:
parent
28669259f0
commit
b2611483fa
@ -67,7 +67,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
|
||||
# Check if we're running the latest version
|
||||
_, version = res.headers.get("location").rsplit("/", 1)
|
||||
package = get_distribution("mkdocs-material")
|
||||
if package.version != version:
|
||||
if not package.version.startswith(version):
|
||||
log.error("Please upgrade to the latest version.")
|
||||
self._help_on_versions_and_exit(package.version, version)
|
||||
|
||||
|
@ -67,7 +67,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
|
||||
# Check if we're running the latest version
|
||||
_, version = res.headers.get("location").rsplit("/", 1)
|
||||
package = get_distribution("mkdocs-material")
|
||||
if package.version != version:
|
||||
if not package.version.startswith(version):
|
||||
log.error("Please upgrade to the latest version.")
|
||||
self._help_on_versions_and_exit(package.version, version)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user