forked from AoS_Digital_Health_Platform/aos-homer-np-prod
first commit
This commit is contained in:
16
homer/homer-icons/scripts/generate_readme.py
Executable file
16
homer/homer-icons/scripts/generate_readme.py
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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(" ".join(img_tags))
|
||||
f.write("\n")
|
||||
Reference in New Issue
Block a user