Skip to content

docs(site): single-source metrics + MLX command paths; standardize terminology#17

Merged
LayerDynamics merged 1 commit into
mainfrom
docs/centralize-site-metrics-and-commands
Jun 11, 2026
Merged

docs(site): single-source metrics + MLX command paths; standardize terminology#17
LayerDynamics merged 1 commit into
mainfrom
docs/centralize-site-metrics-and-commands

Conversation

@LayerDynamics

Copy link
Copy Markdown
Collaborator

Summary

Addresses code-review feedback on the docs site: repeated metric numbers and MLX command snippets across pages risked drift when numbers or CLIs change. This centralizes both into single sources of truth injected at build time, plus the terminology/scope cleanups the review asked for.

What changed

Single source of truth (new build-time injection)

  • site/src/data/metrics.mjs — canonical published model numbers.
  • site/src/data/scripts.mjs — canonical MLX trainer script paths.
  • site/src/plugins/remark-metrics.mjs — remark plugin (registered in astro.config.mjs) that substitutes {{metric.<path>}} and {{script.<path>}} tokens on the mdast. Works in prose, inline/fenced code, and MDX JSX string attributes. Fail-loud: an unresolved token fails astro build.
  • 8 narrative pages now reference tokens instead of duplicated literals (numbers + command paths).

Token separator is a dot, not a colon — Starlight's remark-directive parses an inline :name as a text directive and would shatter a {{ns:…}} token across text nodes.

Terminology (review comment 2)

  • Standardized the load-bearing distinction: measured validity 0.914 (AR) vs sampled-z validity 0.934 (latent diffusion), and the "measured-valid CAD" category noun.

Scope anchors (review comment 3)

  • Added "DeepCAD-trained" qualifiers to time-sensitive claims (frontmatter, landing LinkCard, status card body). Plus the original typo fix.

Deliberately out of scope

  • Descriptive prose mentions of filenames (e.g. the vae parity note in usage.md) are left literal — single contextual descriptions, not duplicated runnable snippets.

Verification

  • astro build green (46 pages, all internal links valid); zero {{metric/{{script token leaks in dist/.
  • Fail-loud confirmed for both namespaces (good tokens resolve, bad paths throw).
  • Rendered command blocks are byte-identical to the previous (HEAD) output — verified by extracting the built HTML and diffing against the original commands, including the column-aligned quickstart block and lines carrying both a {{script}} and a {{metric}} token. What users copy-paste is unchanged.

🤖 Generated with Claude Code

…rminology

Centralize the figures and CLI invocations that were duplicated across the docs, to stop metric/CLI drift (code-review feedback). A build-time remark plugin (site/src/plugins/remark-metrics.mjs, registered in astro.config.mjs) substitutes {{metric.*}} tokens from src/data/metrics.mjs and {{script.*}} tokens from src/data/scripts.mjs across the narrative pages; an unresolved token fails the build (fail-loud). Rendered output is byte-identical to what users copy-paste, including the column-aligned quickstart block.

Also: standardize the measured (0.914) vs sampled-z (0.934) validity distinction and the "measured-valid CAD" category noun; add DeepCAD-trained scope anchors to time-sensitive claims; fix a typo. Descriptive prose mentions of filenames are intentionally left literal (not duplicated snippets).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@sourcery-ai sourcery-ai 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.

Sorry @LayerDynamics, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@LayerDynamics LayerDynamics merged commit 0d24392 into main Jun 11, 2026
3 checks passed
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