mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed wrong limit for warning in info plugin
This commit is contained in:
parent
726e7632bf
commit
8d190ef150
@ -181,7 +181,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
|
|||||||
|
|
||||||
# Print warning when file size is excessively large
|
# Print warning when file size is excessively large
|
||||||
print(Style.RESET_ALL)
|
print(Style.RESET_ALL)
|
||||||
if buffer.nbytes > 250000:
|
if buffer.nbytes > 1000000:
|
||||||
log.warning("Archive exceeds recommended maximum size of 1 MB")
|
log.warning("Archive exceeds recommended maximum size of 1 MB")
|
||||||
|
|
||||||
# Aaaaaand done.
|
# Aaaaaand done.
|
||||||
|
@ -181,7 +181,7 @@ class InfoPlugin(BasePlugin[InfoPluginConfig]):
|
|||||||
|
|
||||||
# Print warning when file size is excessively large
|
# Print warning when file size is excessively large
|
||||||
print(Style.RESET_ALL)
|
print(Style.RESET_ALL)
|
||||||
if buffer.nbytes > 250000:
|
if buffer.nbytes > 1000000:
|
||||||
log.warning("Archive exceeds recommended maximum size of 1 MB")
|
log.warning("Archive exceeds recommended maximum size of 1 MB")
|
||||||
|
|
||||||
# Aaaaaand done.
|
# Aaaaaand done.
|
||||||
|
Loading…
Reference in New Issue
Block a user