From 8d1f0c4ea8ff63ba1ec24528376ccbb21d6b2489 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Tue, 19 Nov 2024 12:54:33 +0000 Subject: [PATCH] Add html_issues_warn_only flag to mindtouch --- .../src/common/schemas/offliners/mindtouch.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dispatcher/backend/src/common/schemas/offliners/mindtouch.py b/dispatcher/backend/src/common/schemas/offliners/mindtouch.py index 602bcb8e..638eea18 100644 --- a/dispatcher/backend/src/common/schemas/offliners/mindtouch.py +++ b/dispatcher/backend/src/common/schemas/offliners/mindtouch.py @@ -162,7 +162,6 @@ class Meta: "description": "Number of parallel workers for asset processing. Default: " "10", }, - required=False, data_key="assets-workers", ) @@ -172,6 +171,18 @@ class Meta: metadata={"label": "Debug", "description": "Enable verbose output"}, ) + html_issues_warn_only = fields.Boolean( + truthy=[True], + falsy=[False], + metadata={ + "label": "HTML issues warn only", + "description": "[dev] Only log a warning when unexpected HTML is " + "encountered. Use with caution because activating this option means that " + "ZIM HTML will probably lead to online resources without user noticing it.", + }, + data_key="html-issues-warn-only", + ) + stats_filename = String( metadata={ "label": "Stats filename",