From 15bc053ee7e547c2eb606e83bcad6eedc31a4ffb Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sat, 25 Jul 2026 15:04:54 +0000 Subject: [PATCH 1/6] style: replace hard-coded stats with live project badges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stats block under 'Trusted by' held hard-coded, made-up numbers (1,000+ GitHub Users, 20K+ Downloads/Month, 50+ Contributors) and was commented out — with no CSS backing it, so it never rendered. Replace it with real, live shields.io badges that always reflect current numbers: PyPI monthly downloads for cpp-linter, GitHub stars for cpp-linter-action, and contributors to cpp-linter. Each badge links to its source, and a small .project-stats rule centers the row. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_012uXrN1wk5EaqK5GimN3deT --- docs/index.md | 25 +++++++++++-------------- docs/stylesheets/extra.css | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/docs/index.md b/docs/index.md index 54b7869..441469f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -133,20 +133,17 @@ title: C/C++ Linting - + diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index d0064cd..5c58a1a 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -197,6 +197,26 @@ th { color: var(--md-default-fg-color--light); } +/* Live project stats (real shields.io badges, not hard-coded numbers) */ +.project-stats { + display: flex; + flex-wrap: wrap; + justify-content: center; + align-items: center; + gap: 1rem; + margin-top: 1rem; +} + +.project-stats a { + display: inline-flex; + line-height: 0; +} + +.project-stats img { + height: 38px; + width: auto; +} + /* Mobile responsiveness for trusted by section */ @media screen and (max-width: 768px) { .logo-grid { From a99ab144b8c15a1e485055c9438c4f52f09f2dab Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sat, 25 Jul 2026 18:16:58 +0300 Subject: [PATCH 2/6] Apply suggestions from code review Co-authored-by: Xianpeng Shen --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 441469f..f2d873a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -140,7 +140,7 @@ title: C/C++ Linting GitHub stars for cpp-linter-action - + Contributors to cpp-linter From b7bfbc7098e30f1efae3827102a75e46025d4a12 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sat, 25 Jul 2026 18:30:04 +0300 Subject: [PATCH 3/6] Apply suggestions from code review Co-authored-by: Xianpeng Shen --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index f2d873a..68b5a2a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -141,7 +141,7 @@ title: C/C++ Linting GitHub stars for cpp-linter-action - Contributors to cpp-linter + Contributors to cpp-linter From b755f556caa17b56d8a7cad7f0c2197c4c9bde0f Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sat, 25 Jul 2026 18:33:49 +0300 Subject: [PATCH 4/6] Update extra.css --- docs/stylesheets/extra.css | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 5c58a1a..d0064cd 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -197,26 +197,6 @@ th { color: var(--md-default-fg-color--light); } -/* Live project stats (real shields.io badges, not hard-coded numbers) */ -.project-stats { - display: flex; - flex-wrap: wrap; - justify-content: center; - align-items: center; - gap: 1rem; - margin-top: 1rem; -} - -.project-stats a { - display: inline-flex; - line-height: 0; -} - -.project-stats img { - height: 38px; - width: auto; -} - /* Mobile responsiveness for trusted by section */ @media screen and (max-width: 768px) { .logo-grid { From aae77387bfa68ce2d46b398f13b28f00cd420c61 Mon Sep 17 00:00:00 2001 From: Xianpeng Shen Date: Sat, 25 Jul 2026 18:36:40 +0300 Subject: [PATCH 5/6] Update project stats section in index.md Removed old project stats and added new statistics for GitHub users, downloads per month, and contributors. --- docs/index.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 68b5a2a..4d63bbd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -133,16 +133,19 @@ title: C/C++ Linting -
- - cpp-linter downloads per month on PyPI - - - GitHub stars for cpp-linter-action - - - Contributors to cpp-linter - +
+
+ 1,000+ + GitHub Users +
+
+ 20K+ + Downloads/Month +
+
+ 50+ + Contributors +
From 184e7c12c23e3a3254b59ad80881a14557237c20 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sat, 25 Jul 2026 18:40:15 +0300 Subject: [PATCH 6/6] style: add .stats-grid CSS for a polished stats display --- docs/stylesheets/extra.css | 62 +++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index d0064cd..0838bac 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -197,7 +197,51 @@ th { color: var(--md-default-fg-color--light); } -/* Mobile responsiveness for trusted by section */ +/* Stats grid under trusted by section */ +.stats-grid { + display: flex; + justify-content: center; + align-items: center; + gap: 0; + margin: 2rem auto 0; + padding: 1.5rem 0; + max-width: 700px; +} + +.stat { + flex: 1; + text-align: center; + padding: 0 2rem; + position: relative; +} + +.stat + .stat::before { + content: ''; + position: absolute; + left: 0; + top: 10%; + height: 80%; + width: 1px; + background: var(--md-default-fg-color--lightest); +} + +.stat strong { + display: block; + font-size: 2.2rem; + font-weight: 800; + color: var(--md-primary-fg-color); + line-height: 1.2; + margin-bottom: 0.25rem; +} + +.stat span { + display: block; + font-size: 0.9rem; + color: var(--md-default-fg-color--light); + font-weight: 500; +} + +/* Mobile responsiveness */ @media screen and (max-width: 768px) { .logo-grid { grid-template-columns: repeat(2, 1fr); @@ -205,7 +249,23 @@ th { padding: 0 1rem; } + .stats-grid { + flex-direction: column; + gap: 1.5rem; + padding: 1rem 0; + } + + .stat { + padding: 0.5rem 0; + } + .stat + .stat::before { + display: none; + } + + .stat strong { + font-size: 1.8rem; + } } /* Ensure tab items have proper contrast */