🚀 Hotlink README icon images to jsDelivr CDN rather than GitHub (#344)

This commit is contained in:
bgh-github 2023-04-09 19:12:36 +10:00 committed by GitHub
parent 997f8e2631
commit 910a909a4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
_ci.py
View File

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