Repository navigation
docs: concise README, full reference moved to docs/GUIDE.md - #299
Merged
Merged
Conversation
…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
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
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.
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.MIGRATION.md,CHANGELOG.mdandCONTRIBUTING.md(README.md#…) now point todocs/GUIDE.md#…. Comments in tests that referred to README sections now refer to the guide.spec-docs/check.jsnow also checksdocs/GUIDE.mdby 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 passesnpm test: 636 tests passednpm run test:types: passesGenerated by Claude Code