docs(HF-282): auto-derive function & language counts in docs#1715
Open
marcin-kordas-hoc wants to merge 1 commit into
Open
docs(HF-282): auto-derive function & language counts in docs#1715marcin-kordas-hoc wants to merge 1 commit into
marcin-kordas-hoc wants to merge 1 commit into
Conversation
The function count already auto-derived via {{ $page.functionsCount }};
add a parallel {{ $page.languagesCount }} sourced from the i18n export
barrel (src/i18n/languages/index.ts), and swap the remaining hardcoded
counts to the interpolated variables.
- config.js: derive languagesCount once at module load from the barrel
(whitespace-tolerant regex + fail-loud guard so a barrel reformat can
never silently publish "0 languages"); inject $page.languagesCount.
- docs: ~400/400+ -> {{ $page.functionsCount }} (index, ai-sdk,
mcp-server, langchain); 17/18 -> {{ $page.languagesCount }}
(index, built-in-functions, i18n-features, localizing-functions).
- README (not a VuePress page): manual "over 400" + "18" (drift-resistant).
Verified via docs:build: renders 418 functions / 18 languages, incl.
inside markdown link text, with no un-rendered mustache in dist.
Docs-only + docs-build-config: no CHANGELOG per DEV_DOCS DoD.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for hyperformula-dev-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Performance comparison of head (9974cda) vs base (6e87a37) |
marcin-kordas-hoc
marked this pull request as ready for review
July 24, 2026 11:38
Collaborator
Author
|
bugbot run |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1715 +/- ##
==========================================
Coverage ? 97.17%
==========================================
Files ? 176
Lines ? 15483
Branches ? 3429
==========================================
Hits ? 15045
Misses ? 438
Partials ? 0 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 9974cda. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
The docs stated a hardcoded count of built-in functions ("~400"/"400+") and languages ("17"/"18") that drifts from reality. The function count already auto-derived via
{{ $page.functionsCount }}; this adds the parallel{{ $page.languagesCount }}and swaps the remaining hardcoded counts to the interpolated variables.How
docs/.vuepress/config.js: derivelanguagesCountonce at config load from the i18n export barrelsrc/i18n/languages/index.ts(whitespace-tolerant regex + fail-loud guard so a barrel reformat can never silently publish "0 languages"); inject$page.languagesCount.~400/400+→{{ $page.functionsCount }}(index, ai-sdk, mcp-server, langchain);17/18→{{ $page.languagesCount }}(index, built-in-functions, i18n-features, localizing-functions).README.md(not a VuePress page): manualover 400+18(drift-resistant).Verification
docs:buildrenders the real counts (functions / languages), including inside markdown link text, with no un-rendered{{ }}in the built output. Docs-only + docs-build-config → no CHANGELOG per DEV_DOCS DoD.Known nuance
README.mdcounts remain hand-maintained (not a VuePress page); thelocalizing-functions.mdlanguage table rows are also hand-maintained. "over 400" is chosen so the function line does not restale as functions grow.Note
Low Risk
Documentation and VuePress config only; no runtime library or API behavior changes.
Overview
Stops hardcoded function (~400/400+) and language (17/18) figures from drifting by wiring docs to live counts.
VuePress now derives
languagesCountat config load fromsrc/i18n/languages/index.ts(regex on export lines, throws if zero) and exposes{{ $page.languagesCount }}alongside the existing{{ $page.functionsCount }}from the built HyperFormula bundle. Guide pages, the docs home, and AI integration previews swap static numbers for those placeholders.README.mdis updated manually (over 400functions,18languages) because it is not rendered through VuePress.Reviewed by Cursor Bugbot for commit 9974cda. Bugbot is set up for automated code reviews on this repo. Configure here.