refactor(website): rename stdlib source type label to Built-in

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-03-22 02:04:45 +08:00
parent 666f6e52d0
commit bfaa207ef3
No known key found for this signature in database
GPG Key ID: B93DE4F003C33630

View File

@ -40,7 +40,7 @@ class StarData(TypedDict):
GITHUB_REPO_URL_RE = re.compile(r"^https?://github\.com/([^/]+/[^/]+?)(?:\.git)?/?$")
SOURCE_TYPE_DOMAINS = {
"docs.python.org": "stdlib",
"docs.python.org": "Built-in",
"gitlab.com": "GitLab",
"bitbucket.org": "Bitbucket",
}
@ -85,7 +85,7 @@ def sort_entries(entries: list[dict]) -> list[dict]:
name = entry["name"].lower()
if stars is not None:
return (0, -stars, name)
if entry.get("source_type") == "stdlib":
if entry.get("source_type") == "Built-in":
return (1, 0, name)
return (2, 0, name)