Skip to content

Commit

Permalink
Merge pull request #1052 from openzim/mindtouch
Browse files Browse the repository at this point in the history
Add html_issues_warn_only flag to mindtouch
  • Loading branch information
benoit74 authored Nov 19, 2024
2 parents 7459c1a + 8d1f0c4 commit 18fdc87
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dispatcher/backend/src/common/schemas/offliners/mindtouch.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ class Meta:
"description": "Number of parallel workers for asset processing. Default: "
"10",
},
required=False,
data_key="assets-workers",
)

Expand All @@ -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",
Expand Down

0 comments on commit 18fdc87

Please sign in to comment.