Skip to content

Commit

Permalink
let code more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
lgc2333 committed Apr 26, 2024
1 parent 7cfdabc commit 8925a53
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ issuesに投稿してください。確認次第作成します。
| Hono | <img src="../Hono/Hono.png" alt="Hono" width="100" /> |
| Html | <img src="../Html/HTML.png" alt="HTML" width="100" /> |
| Htmx | <img src="../Htmx/htmx.png" alt="htmx" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> |
| Java | <img src="../Java/Java.png" alt="Java" width="100" /> |
| Juniper | <img src="../Juniper/Juniper.png" alt="Juniper" width="100" /> |
| Kotlin | <img src="../Kotlin/Kotlin.png" alt="Kotlin" width="100" /> <img src="../Kotlin/Kotlin_New.png" alt="Kotlin_New" width="100" /> |
Expand Down
2 changes: 1 addition & 1 deletion docs/README-zhHans.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
| Hono | <img src="../Hono/Hono.png" alt="Hono" width="100" /> |
| Html | <img src="../Html/HTML.png" alt="HTML" width="100" /> |
| Htmx | <img src="../Htmx/htmx.png" alt="htmx" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> |
| Java | <img src="../Java/Java.png" alt="Java" width="100" /> |
| Juniper | <img src="../Juniper/Juniper.png" alt="Juniper" width="100" /> |
| Kotlin | <img src="../Kotlin/Kotlin.png" alt="Kotlin" width="100" /> <img src="../Kotlin/Kotlin_New.png" alt="Kotlin_New" width="100" /> |
Expand Down
2 changes: 1 addition & 1 deletion docs/README-zhHant.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
| Hono | <img src="../Hono/Hono.png" alt="Hono" width="100" /> |
| Html | <img src="../Html/HTML.png" alt="HTML" width="100" /> |
| Htmx | <img src="../Htmx/htmx.png" alt="htmx" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> |
| Java | <img src="../Java/Java.png" alt="Java" width="100" /> |
| Juniper | <img src="../Juniper/Juniper.png" alt="Juniper" width="100" /> |
| Kotlin | <img src="../Kotlin/Kotlin.png" alt="Kotlin" width="100" /> <img src="../Kotlin/Kotlin_New.png" alt="Kotlin_New" width="100" /> |
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ If you would like to sell your product officially, please send a [Direct message
| Hono | <img src="../Hono/Hono.png" alt="Hono" width="100" /> |
| Html | <img src="../Html/HTML.png" alt="HTML" width="100" /> |
| Htmx | <img src="../Htmx/htmx.png" alt="htmx" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> |
| IamSeries | <img src="../IamSeries/IamDesigner%21.png" alt="IamDesigner%21" width="100" /> <img src="../IamSeries/IamDesigner%21English.png" alt="IamDesigner%21English" width="100" /> <img src="../IamSeries/IamProgrammer%21.png" alt="IamProgrammer%21" width="100" /> <img src="../IamSeries/IamProgrammerEnglish.png" alt="IamProgrammerEnglish" width="100" /> |
| Java | <img src="../Java/Java.png" alt="Java" width="100" /> |
| Juniper | <img src="../Juniper/Juniper.png" alt="Juniper" width="100" /> |
| Kotlin | <img src="../Kotlin/Kotlin.png" alt="Kotlin" width="100" /> <img src="../Kotlin/Kotlin_New.png" alt="Kotlin_New" width="100" /> |
Expand Down
18 changes: 11 additions & 7 deletions docs/scripts/generate-images-table.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,20 @@ def get_image_tags(images: list[Path]) -> str:
for x in images
)

item_list = [
(
folder,
sorted( # move exact match to first
images,
key=lambda x: "\0" if x.stem == folder else x.stem.lower(),
),
)
for folder, images in sorted(folders.items(), key=lambda x: x[0].lower())
]
lines = [
f"| {l5(locale, 'name')} | {l5(locale, 'image')} |",
"| --- | --- |",
*(
(
f"| {folder} "
f"| {get_image_tags(sorted(images, key=lambda x: -1 if x.stem == folder else 0))} |"
)
for folder, images in sorted(folders.items(), key=lambda x: x[0].lower())
),
*(f"| {folder} | {get_image_tags(images)} |" for folder, images in item_list),
]
return "\n".join(lines)

Expand Down

0 comments on commit 8925a53

Please sign in to comment.