From d27ba914f7ca236ad7c1f180a2a61a137771740f Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 14 Nov 2024 08:28:18 +0000 Subject: [PATCH] Add new --logo-format argument to devdocs scraper --- .../backend/src/common/schemas/offliners/devdocs.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dispatcher/backend/src/common/schemas/offliners/devdocs.py b/dispatcher/backend/src/common/schemas/offliners/devdocs.py index 163cf772..22a1bdb5 100644 --- a/dispatcher/backend/src/common/schemas/offliners/devdocs.py +++ b/dispatcher/backend/src/common/schemas/offliners/devdocs.py @@ -99,6 +99,16 @@ class Meta: validate=validate_zim_longdescription, ) + logo_format = String( + metadata={ + "label": "ZIM illustration", + "description": "URL to a custom ZIM logo in PNG, JPG, or SVG format. You " + "can use placeholders, see " + "https://github.com/openzim/devdocs/blob/main/README.md.", + }, + data_key="logo-format", + ) + tags = String( metadata={ "label": "ZIM Tags",