Skip to content

docs: concise README, full reference moved to docs/GUIDE.md - #299

Merged
ffMathy merged 1 commit into
masterfrom
ccr-723eb8b0-9aug8w
Nov 23, 2026
Merged

ffMathy merged 1 commit into
masterfrom
ccr-723eb8b0-9aug8w

Conversation

@ffMathy

@ffMathy ffMathy commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What

The README had grown into a 4,300-line (381 KB) reference manual. That's great as a reference, but hard to use as a landing page on GitHub and npm.

  • New README.md: badges, a short hero example, "Why substitute.js?", installing, a quick start (service + repository + logger), a cheat sheet (return values, matchers table, verifying calls, partial mocks, nested members, [configure](), symbol API), test runner usage, importing, a documentation index, and the contributors and license sections.
  • docs/GUIDE.md: the previous README, almost unchanged (new header, relative links fixed). The "Benefits" and contributors sections moved to the README.
  • Links from MIGRATION.md, CHANGELOG.md and CONTRIBUTING.md (README.md#…) now point to docs/GUIDE.md#…. Comments in tests that referred to README sections now refer to the guide.
  • spec-docs/check.js now also checks docs/GUIDE.md by default, so every example in both the README and the guide is still type-checked and run.

Verification

  • npm run test:docs: 185 code blocks, 0 problems, and the self-test passes
  • npm test: 636 tests passed
  • npm run test:types: passes

Generated by Claude Code

…o docs/GUIDE.md

The README had grown into a 4,300-line reference manual. It now opens with a
short example, explains why to use the library, and has a quick start, a cheat
sheet and links into the full guide.

The previous README content lives on, almost unchanged, in docs/GUIDE.md. Links
from MIGRATION.md, CHANGELOG.md and CONTRIBUTING.md now point there, and the
docs check (npm run test:docs) type-checks and runs the examples of both files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KD7sVgFfN7fkTg8n48jSeb
@ffMathy
ffMathy merged commit d65252a into master Nov 23, 2026
17 checks passed
@ffMathy
ffMathy deleted the ccr-723eb8b0-9aug8w branch November 23, 2026 01:04
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