Update readme script

This commit is contained in:
Walkx 2021-09-12 14:02:49 +02:00
parent 15a965475b
commit ae31d9c02a
No known key found for this signature in database
GPG Key ID: 68064364C5E8FD71
2 changed files with 33 additions and 4 deletions

19
scripts/README.md Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,26 @@
#!/usr/bin/python3
from pathlib import Path
def generate_img_tag(file):
return f'<img src="png/{file.name}" alt="{file.stem}" width="50">'
if __name__ == "__main__":
imgs = sorted(Path("../png").glob("*.png"))
img_tags = [generate_img_tag(x) for x in imgs]
with open("README.md", "wt", encoding="UTF-8") as f:
f.write("# Homer Icons\n\n")
f.write("[Homer Dashboard](https://github.com/bastienwirtz/homer)\n\n")
f.write("# Dashboard Icons\n\n")
f.write("### The best Dashboards:\n\n")
f.write("[- Homer Dashboard](https://github.com/bastienwirtz/homer)\n\n")
f.write("[- Heimdall](https://github.com/linuxserver/Heimdall)\n\n")
f.write("[- Organizr (v2)](https://github.com/causefx/Organizr)\n\n")
f.write("[- Dashy](https://github.com/Lissy93/dashy)\n\n")
f.write("[- Flame](https://github.com/pawelmalak/flame)\n\n")
f.write("[- Tinyhome](https://github.com/bderenzo/tinyhome)\n\n")
f.write("[- SUI](https://github.com/jeroenpardon/sui)\n\n")
f.write(" ".join(img_tags))
f.write("\n")
print('done')
input()