From 75fb168a03de09f995d05efd4fd2bfda2d595e0f Mon Sep 17 00:00:00 2001 From: Duarte Santos Date: Mon, 31 Aug 2026 18:28:50 +0200 Subject: [PATCH] website: the Discord member count next to the star count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nav has advertised the repo's stars since the GitLab move but said nothing about the community, which is by now the larger number of the two. Both links now carry their count: GitLab ★ 185, Discord 1,084. Discord hands an invite's guild counts to anyone who appends ?with_counts=1 — no bot token, no server widget to switch on, and the API reflects the caller's Origin, so the browser may read it. The count is fetched exactly like the repo counts: once per tab, cached in sessionStorage, and failing soft — a blocked or revoked request leaves the link reading "Discord", the way it read before. The numbers panel on the home page gains a sixth cell for it and loses the "repo" in its caption, since the counts are no longer all from the repo. Six cells divide evenly where five left a hole, so the row that used to span the full width at the narrow breakpoint goes away: six, then three, then two. --- scripts/build-api-docs.mjs | 8 ++++---- website/about.html | 8 ++++---- website/api.html | 8 ++++---- website/docs.html | 8 ++++---- website/index.html | 11 ++++++----- website/site.js | 31 +++++++++++++++++++++++++++++++ website/styles.css | 16 +++++++--------- 7 files changed, 60 insertions(+), 30 deletions(-) diff --git a/scripts/build-api-docs.mjs b/scripts/build-api-docs.mjs index fefd3e8..eba819b 100644 --- a/scripts/build-api-docs.mjs +++ b/scripts/build-api-docs.mjs @@ -480,7 +480,7 @@ const html = ` - + @@ -501,7 +501,7 @@ const html = ` API About GitLab - Discord + Discord Download