This is an automated email from the ASF dual-hosted git repository.
wu-sheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git
The following commit(s) were added to refs/heads/master by this push:
new 0789ef9d1eb feat(home/docs): surface total GitHub stars (build-time
sum across all repos)
0789ef9d1eb is described below
commit 0789ef9d1ebcbf61e9fce3af577a9acae1379f4c
Author: Wu Sheng <[email protected]>
AuthorDate: Sun May 24 14:07:24 2026 +0800
feat(home/docs): surface total GitHub stars (build-time sum across all
repos)
scripts/stars.js already sums every (user/repo) in data/docs.yml into
data/stars.yml's totals.stars at build time; this just renders it:
- new {{< stars-total >}} shortcode (compact form, e.g. '34.3K+')
- 4th hero-stat on the home page linking to apache org repos search
- extended /docs/ eyebrow with the same total + repo count
---
content/_index.html | 1 +
layouts/docs/baseof.html | 3 ++-
layouts/shortcodes/stars-total.html | 6 ++++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/content/_index.html b/content/_index.html
index 4abcde95560..58ed43093ed 100644
--- a/content/_index.html
+++ b/content/_index.html
@@ -18,6 +18,7 @@ linkTitle = "Apache SkyWalking"
</a>
<ul class="hero-stats">
<li><a href="/team/"><strong>{{< team-count
>}}</strong><span>contributors</span></a></li>
+ <li><a href="https://github.com/apache?q=skywalking" target="_blank"
rel="noopener"><strong>{{< stars-total >}}</strong><span>★ on
GitHub</span></a></li>
<li><strong>100B+</strong><span>telemetry / cluster</span></li>
<li><strong>10+ yrs</strong><span>in production</span></li>
</ul>
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index ba03d37593f..01f13b451e1 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -11,7 +11,8 @@
<main class="td-main" role="main">
<section class="docs-hero">
<div class="container">
- <span class="eyebrow">DOCS · {{ len .Site.Data.docs }}
SECTIONS</span>
+ {{- /* total stars across every repo listed in data/docs.yml, summed
at build time by scripts/stars.js into data/stars.yml */ -}}
+ <span class="eyebrow">DOCS · {{ len .Site.Data.docs }} SECTIONS{{
with .Site.Data.stars.totals.stars }} · {{ printf "%.1fK+" (div (float .)
1000.0) }} ★ ACROSS {{ $.Site.Data.stars.totals.repos }} REPOS{{ end }}</span>
<h1>Projects & documentation</h1>
<p>SkyWalking is the Server, UI, native storage and many agents.
Start with the
<a href="#SkyWalkingServers">Server</a> to understand
installation and deployment, then pick the
diff --git a/layouts/shortcodes/stars-total.html
b/layouts/shortcodes/stars-total.html
new file mode 100644
index 00000000000..11e04d49fa8
--- /dev/null
+++ b/layouts/shortcodes/stars-total.html
@@ -0,0 +1,6 @@
+{{- /* Total GitHub stars across every (user/repo) in data/docs.yml,
+ summed at build time by scripts/stars.js into data/stars.yml.
+ Rendered compact, e.g. "34.3K+". */ -}}
+{{- with .Site.Data.stars.totals.stars -}}
+{{- if ge . 1000 -}}{{- printf "%.1fK+" (div (float .) 1000.0) -}}{{- else
-}}{{- . -}}{{- end -}}
+{{- end -}}