Add Readme

This commit is contained in:
2024-03-10 10:45:57 -06:00
parent 4324adc519
commit 84ebb93b63
2 changed files with 19 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
#!/usr/bin/python3
from pathlib import Path
def generate_img_tag(file):
return f'<img src="Icons/{file.name}" alt="{file.stem}" width="50">'
if __name__ == "__main__":
imgs = sorted(Path("../Icons").glob("*.png"))
img_tags = [generate_img_tag(x) for x in imgs]
with open("README.md", "wt", encoding="UTF-8") as f:
f.write("# Icons\n\n")
f.write(" ".join(img_tags))
f.write("\n")