Skip to content

feat(open-knowledge): GitHub star count in docs site nav#382

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 29, 2026
Merged

feat(open-knowledge): GitHub star count in docs site nav#382
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

No description provided.

* feat(open-knowledge): show GitHub star count in docs site nav

Add a live GitHub star count to the docs marketing nav, rendered as a
bordered split pill (GitHub label │ divider │ star + count) beside the
social links. The count is fetched server-side in the (home) layout via
a new getGitHubStars() helper (cached hourly, degrades to null on any
failure) and passed to the client SiteNav. Also reflows the desktop nav
so Docs sits beside the logo on the left.

* add golden-sun-300 color var

* fix(open-knowledge): mobile GitHub nav row + review polish

Address review feedback on the docs-site GitHub star nav:

- Mobile: render GitHub as a full-width row (icon + label, count pushed
  to the trailing edge) instead of reusing the desktop pill, which
  floated a fixed-width pill among full-width hamburger rows. Adds a
  `variant` ('pill' | 'row') to GitHubStarButton.
- a11y: give the three sibling <nav> landmarks distinct aria-labels
  (Primary / Secondary / Mobile) per WCAG 2.4.1.
- Hoist the full-number Intl.NumberFormat to module scope instead of
  allocating per render, matching the existing starFormatter.
- github-stars: console.warn on non-2xx (429/403) before returning null
  so a missing badge is distinguishable from a rate-limit incident in
  logs, matching download-links.ts.

* fix(open-knowledge): log fetch failures in getGitHubStars catch path

Warn on network/DNS failures and the 5s-timeout AbortError for parity
with the non-2xx path, so neither failure mode is silent in logs.

---------

GitOrigin-RevId: a8d3fa513f6c473a2a9420f3ada24e21051c3f75

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28410256461). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit ad64e45 into main Jun 29, 2026
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 29, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant