.
This commit is contained in:
@ -94,9 +94,8 @@ def load_settings() -> dict:
|
||||
SETTINGS = DEFAULT_SETTINGS
|
||||
|
||||
|
||||
def run_validation():
|
||||
settings_config.format_settings_file()
|
||||
messages, language = validate.collect_messages()
|
||||
def run_validation(format_settings: bool = True):
|
||||
messages, language = validate.collect_messages(format_settings=format_settings)
|
||||
|
||||
if not messages:
|
||||
print(validate.tr(language, "ok"))
|
||||
@ -1643,10 +1642,10 @@ def copy_content_media():
|
||||
)
|
||||
|
||||
|
||||
def build_site():
|
||||
def build_site(format_settings: bool = True):
|
||||
global SETTINGS
|
||||
|
||||
run_validation()
|
||||
run_validation(format_settings=format_settings)
|
||||
SETTINGS = load_settings()
|
||||
|
||||
if OUTPUT_DIR.exists():
|
||||
|
||||
Reference in New Issue
Block a user