Skip to content

Update Counters#304

Merged
MrHinsh merged 1 commit into
mainfrom
Update-counters
Jan 22, 2026
Merged

Update Counters#304
MrHinsh merged 1 commit into
mainfrom
Update-counters

Conversation

@MrHinsh
Copy link
Copy Markdown
Collaborator

@MrHinsh MrHinsh commented Jan 22, 2026

This pull request updates the statistics shown on the homepage to provide more accurate and dynamic counts for expansions and expert authors.

Homepage statistics improvements:

  • Changed the expansions count to display only the number of sections of type "guide" instead of all site sections, making the statistic more relevant.
  • Updated the expert authors count to dynamically calculate the number of unique contributors based on their GitHub usernames or names, instead of displaying a hardcoded value.

This change is Reviewable

@MrHinsh MrHinsh marked this pull request as ready for review January 22, 2026 16:04
Copilot AI review requested due to automatic review settings January 22, 2026 16:04
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://agreeable-island-0c966e810-304.centralus.6.azurestaticapps.net

@MrHinsh MrHinsh merged commit 4a20c5d into main Jan 22, 2026
9 checks passed
@MrHinsh MrHinsh deleted the Update-counters branch January 22, 2026 16:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates the homepage statistics to be more accurate and dynamic by replacing hardcoded and imprecise counts with calculated values based on actual site data.

Changes:

  • Updated the expansions counter to count only sections of type "guide" instead of all site sections
  • Replaced the hardcoded "3" expert authors count with a dynamic calculation that iterates through contribution data files and counts unique contributors

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.

2 participants