Skip to content

feat: add markdown-code to manage README code samples#48

Merged
scalvert merged 1 commit into
mainfrom
add-markdown-code
Apr 20, 2026
Merged

feat: add markdown-code to manage README code samples#48
scalvert merged 1 commit into
mainfrom
add-markdown-code

Conversation

@scalvert

@scalvert scalvert commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds markdown-code to extract and manage README code blocks as real files
  • Extracts 19 code samples into snippets/readme/, enabling drift detection between documentation and actual usage examples
  • Adds snippets:check and snippets:sync npm scripts
  • Integrates snippets:check into test:all so CI catches desynchronization
  • Prettier auto-formats the snippet files via the existing lint setup
  • Adds .omc/ to .prettierignore (pre-existing issue)

Test plan

  • npm run snippets:check passes (all snippets in sync)
  • npm run lint passes (snippet files formatted by Prettier)
  • npm run test:all passes with the new check included
  • Edit a snippet file, run snippets:check — should fail (proves drift detection works)

🤖 Generated with Claude Code

Extracts 19 code blocks from the README into snippet files under
snippets/readme/, enabling drift detection between docs and actual
usage examples. Adds snippets:check to test:all so CI catches
desynchronization.

Also adds .omc/ to .prettierignore (pre-existing issue).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@scalvert
scalvert merged commit 6ffa81a into main Apr 20, 2026
8 checks passed
@scalvert
scalvert deleted the add-markdown-code branch April 20, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant