Skip to content

Commit 18fdc87

Browse files
authored
Merge pull request #1052 from openzim/mindtouch
Add html_issues_warn_only flag to mindtouch
2 parents 7459c1a + 8d1f0c4 commit 18fdc87

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

dispatcher/backend/src/common/schemas/offliners/mindtouch.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ class Meta:
162162
"description": "Number of parallel workers for asset processing. Default: "
163163
"10",
164164
},
165-
required=False,
166165
data_key="assets-workers",
167166
)
168167

@@ -172,6 +171,18 @@ class Meta:
172171
metadata={"label": "Debug", "description": "Enable verbose output"},
173172
)
174173

174+
html_issues_warn_only = fields.Boolean(
175+
truthy=[True],
176+
falsy=[False],
177+
metadata={
178+
"label": "HTML issues warn only",
179+
"description": "[dev] Only log a warning when unexpected HTML is "
180+
"encountered. Use with caution because activating this option means that "
181+
"ZIM HTML will probably lead to online resources without user noticing it.",
182+
},
183+
data_key="html-issues-warn-only",
184+
)
185+
175186
stats_filename = String(
176187
metadata={
177188
"label": "Stats filename",

0 commit comments

Comments
 (0)