From b8febc247741868ca048107fdf1dfde65627c9de Mon Sep 17 00:00:00 2001 From: Taesu <166604494+bytaesu@users.noreply.github.com> Date: Wed, 18 Mar 2026 16:40:10 +0900 Subject: [PATCH] docs: correct contributor count mismatch (#8667) Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- landing/app/page.tsx | 1 + landing/components/landing/hero-readme.tsx | 23 ++++++++++++++-------- landing/lib/community-stats.ts | 6 ++++-- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/landing/app/page.tsx b/landing/app/page.tsx index 931fc1c584..b9074708ff 100644 --- a/landing/app/page.tsx +++ b/landing/app/page.tsx @@ -71,6 +71,7 @@ export default async function HomePage() { stats={{ npmDownloads: communityStats.npmDownloads, githubStars: communityStats.githubStars, + contributors: communityStats.contributors, }} /> diff --git a/landing/components/landing/hero-readme.tsx b/landing/components/landing/hero-readme.tsx index cdabad796e..56cb0d3551 100644 --- a/landing/components/landing/hero-readme.tsx +++ b/landing/components/landing/hero-readme.tsx @@ -1216,10 +1216,18 @@ function SentinelSection() { const EMPTY_CONTRIBUTORS: ContributorInfo[] = []; +type CommunityHeroStats = { + npmDownloads: number; + githubStars: number; + contributors: number; +}; + function ContributorsSection({ contributors = EMPTY_CONTRIBUTORS, + contributorCount, }: { contributors: ContributorInfo[]; + contributorCount: number; }) { if (contributors.length === 0) return null; @@ -1245,7 +1253,7 @@ function ContributorsSection({
Built by a community of{" "} - 746+ + {contributorCount}+ {" "} contributors.
@@ -1335,11 +1343,7 @@ const footerLinks = [ { label: "Changelog", href: "/changelog" }, ]; -function ReadmeFooter({ - stats, -}: { - stats: { npmDownloads: number; githubStars: number }; -}) { +function ReadmeFooter({ stats }: { stats: CommunityHeroStats }) { return (