Skip to content

[WIP] RDBDM-392 Language snippet-coverage report - #2748

Draft
Scooletz wants to merge 1 commit into
ravendb:mainfrom
Scooletz:RDBDM-392-language-snippet-coverage-report
Draft

Scooletz wants to merge 1 commit into
ravendb:mainfrom
Scooletz:RDBDM-392-language-snippet-coverage-report

Conversation

@Scooletz

@Scooletz Scooletz commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

WIP / draft — not ready for review yet.

Issue: https://issues.ravendb.net/issue/RDBDM-392/Docs-programming-language-support

What this adds

A repeatable report measuring how well each client language is covered across the multi-language docs/ pages (pages that declare supported_languages and pull one content/_<name>-<lang>.mdx partial per language).

  • scripts/report-language-coverage.js — walks the docs, measuring per language: page coverage (how many multi-language pages offer it), snippet depth (fenced code blocks in its partials, avg per page), and a gap list of pages that have C# but are missing the language (rendered as navigable relative links in the report).
  • npm run report:languages alias.
  • Writes reports/language-coverage/latest.md + latest.json, overwriting each run and showing a delta vs the previous run. Generated output is gitignored.

Initial results (current docs/, 345 multi-language pages)

Language Pages Coverage Snippets Avg/page
C# 345 100% 2271 6.58
Node.js 260 75% 1025 3.94
Java 195 57% 695 3.56
Python 186 54% 793 4.26
PHP 161 47% 389 2.42

C# is the full baseline; PHP is thinnest in both coverage and density.

Run it

npm run report:languages

Add scripts/report-language-coverage.js: measures per-language snippet
coverage (page coverage, snippet depth, C# gap lists) across the
multi-language docs/ pages, writing latest.md/latest.json and a
delta-vs-previous section on reruns. Exposed via 'npm run report:languages'.
Generated output under reports/language-coverage/ is gitignored.
@Scooletz Scooletz self-assigned this Dec 1, 2026
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