🔀 Merge Favour CDN image URLs over GitHub (#372)

* Anchor each icon image to CDN

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>

* Adjust icon download instructions/examples

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>

---------

Signed-off-by: bgh-github <99472455+bgh-github@users.noreply.github.com>
This commit is contained in:
bgh-github
2023-04-19 01:34:03 +10:00
committed by GitHub
parent 4eef36b26a
commit c4bfa50a72
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ path = root / "../ICONS.md"
def generate_img_tag(file):
return f'<img src="png/{file.name}" alt="{file.stem}" height="50">'
return f'<a href="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}"><img src="https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/{file.name}" alt="{file.stem}" height="50"></a>'
imgs = sorted(Path("./png").glob("*.png"))