mirror of
https://github.com/walkxhub/dashboard-icons.git
synced 2025-12-06 13:06:59 -05:00
Update readme script
This commit is contained in:
parent
15a965475b
commit
ae31d9c02a
19
scripts/README.md
Normal file
19
scripts/README.md
Normal file
File diff suppressed because one or more lines are too long
@ -1,16 +1,26 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
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="png/{file.name}" alt="{file.stem}" width="50">'
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
imgs = sorted(Path("../png").glob("*.png"))
|
imgs = sorted(Path("../png").glob("*.png"))
|
||||||
img_tags = [generate_img_tag(x) for x in imgs]
|
img_tags = [generate_img_tag(x) for x in imgs]
|
||||||
|
|
||||||
with open("README.md", "wt", encoding="UTF-8") as f:
|
with open("README.md", "wt", encoding="UTF-8") as f:
|
||||||
f.write("# Homer Icons\n\n")
|
f.write("# Dashboard Icons\n\n")
|
||||||
f.write("[Homer Dashboard](https://github.com/bastienwirtz/homer)\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(" ".join(img_tags))
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
|
||||||
|
print('done')
|
||||||
|
input()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user