diff --git a/docs/contributor.md b/docs/contributor.md index 8dbb0829..06a92b00 100644 --- a/docs/contributor.md +++ b/docs/contributor.md @@ -4,4 +4,4 @@ 以字典序排序: -* (本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`) +- [(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`)](#) diff --git a/scripts/contributors.py b/scripts/contributors.py index 1ec65e22..597bd92e 100644 --- a/scripts/contributors.py +++ b/scripts/contributors.py @@ -15,7 +15,8 @@ def get_api(): if "CI" not in os.environ: return [ { - "login": "(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`)" + "login": "(本文件由 CI 生成,参见仓库中的 `scripts/contributors.py`)", + "html_url": "#", } ] headers = { @@ -35,7 +36,7 @@ def main(): data = get_api() data.sort(key=lambda x: x["login"].casefold()) for item in data: - print(f"* {item['login']}", file=f) + print(f"- [{item['login']}]({item['html_url']})", file=f) if __name__ == "__main__":