Skip to content

Open the docs Quickstart with the README's program - #68

Merged
NSchatz merged 1 commit into
mainfrom
docs-quickstart-matches-readme
Sep 25, 2026
Merged

NSchatz merged 1 commit into
mainfrom
docs-quickstart-matches-readme

Conversation

@NSchatz

@NSchatz NSchatz commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

The docs Quickstart page (docs-content/quickstart.md, which docs.cosyte.com renders) now opens with the same program as the README quickstart. Docs and test change only; no src/ change.

Why

The page opened with createRng, safe and isSyntheticSsn, while the README's quickstart opens with the @cosyte/synth/hl7 generators. Two first-use routes, two different first programs.

What changes

  • docs-content/quickstart.md: a new first section, "Generate a spec-clean HL7 v2 message", carrying the README's quickstart block verbatim (tagged ts runnable, so the docs build executes it), with a line saying what it prints and a link to Installation for the @cosyte/hl7 peer. The value-provider, corpus and determinism sections follow; "Generate an HL7 v2 message" becomes "Check the round trip yourself" and keeps its asserted result.warnings; // => []. Sidebar untouched (Installation and Quickstart stay top-level categories); no .git URLs.
  • test/docs-content.test.ts: one new case, the page's first runnable block must equal the README's first TypeScript block after ## Install, byte for byte. Negative control: changing the seed in the page's block reds it.
  • A patch changeset.

Checks run locally (pnpm 10.0.0, Node 24)

typecheck, lint, format:check, test (56 files, 828 tests), check (test-selection), phi-scan (all-mode and --staged), check:no-emdash, check:no-internal-refs: all exit 0. The shared release-notes renderer keeps the changeset's headline with no violation.

https://claude.ai/code/session_01U24bnHKNxQWMxmfN7ny7w9

docs.cosyte.com renders this package's Quickstart page from
docs-content/quickstart.md, which opened with the seeded value
providers while the README's quickstart opens with the HL7 v2
generators. A reader arriving from npm and one arriving from the
documentation site met two different first programs.

The page now leads with the README's quickstart block verbatim, tagged
runnable so the docs build executes it, with a line saying what it
prints. The value-provider, round-trip, corpus and determinism examples
follow; the old "Generate an HL7 v2 message" section becomes "Check the
round trip yourself", keeping its asserted zero-warning claim.

test/docs-content.test.ts gains one case: the page's first runnable
block must equal the README's first TypeScript block after ## Install,
byte for byte (a changed seed in the page reds it; checked). A patch
changeset records the change. Sidebar untouched.

Claude-Session: https://claude.ai/code/session_01U24bnHKNxQWMxmfN7ny7w9
@NSchatz
NSchatz enabled auto-merge (squash) September 25, 2026 21:17
@NSchatz
NSchatz merged commit 5e46b8d into main Sep 25, 2026
38 of 40 checks passed
@NSchatz
NSchatz deleted the docs-quickstart-matches-readme branch September 25, 2026 21:29
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