From 7fd7965b90e09c1238ee6d783e2e6cac64baddcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20G=C3=B3mez-S=C3=A1nchez?= <7352559+magicDGS@users.noreply.github.com> Date: Wed, 20 Nov 2024 07:44:39 +0100 Subject: [PATCH] fix: Use Github raw url for MDI (#132) Using unpkg for MDI glyphs has been unreliable, with timeout even with generous thresholds and retries. Switch back to using Github raw URL. (Hopefully) fixes #116. --- keymap_drawer/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keymap_drawer/config.py b/keymap_drawer/config.py index 8ae73b6..2ac9371 100644 --- a/keymap_drawer/config.py +++ b/keymap_drawer/config.py @@ -257,7 +257,7 @@ class KeySidePars(BaseModel): exclude=True, default={ "tabler": "https://unpkg.com/@tabler/icons/icons/outline/{}.svg", - "mdi": "https://unpkg.com/@mdi/svg/svg/{}.svg", + "mdi": "https://raw.githubusercontent.com/Templarian/MaterialDesign-SVG/master/svg/{}.svg", "mdil": "https://raw.githubusercontent.com/Pictogrammers/MaterialDesignLight/master/svg/{}.svg", "material": "https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsoutlined/{}/default/48px.svg", "phosphor": "https://unpkg.com/@phosphor-icons/core/assets/{}.svg",