docs: make contributor wall responsive

This commit is contained in:
Xubin Ren
2026-08-23 00:49:26 +08:00
parent cfe75dbb8d
commit e21e71c55b
2 changed files with 101 additions and 17 deletions
+2 -7
View File
@@ -14,7 +14,6 @@ README = Path(__file__).resolve().parents[1] / "README.md"
START = "<!-- contributors:start -->"
END = "<!-- contributors:end -->"
MAX_CONTRIBUTORS = 100
AVATARS_PER_ROW = 10
MAINTAINERS = {"re-bin", "chengyongru"}
@@ -50,12 +49,8 @@ def render_wall(contributors: list[dict[str, str]]) -> str:
)
for contributor in contributors
]
rows = [
"".join(avatars[index : index + AVATARS_PER_ROW])
for index in range(0, len(avatars), AVATARS_PER_ROW)
]
wall = "<br>\n".join(rows)
return f"{START}\n{wall}\n{END}"
wall = "\n".join(avatars)
return f"{START}\n<p>\n{wall}\n</p>\n{END}"
def update_readme(*, check: bool) -> bool: