Skip to content

docs: add markdown-code sync infrastructure for README examples#55

Merged
steve-calvert-glean merged 2 commits intomainfrom
docs/markdown-code-sync-infrastructure
Mar 24, 2026
Merged

docs: add markdown-code sync infrastructure for README examples#55
steve-calvert-glean merged 2 commits intomainfrom
docs/markdown-code-sync-infrastructure

Conversation

@steve-calvert-glean
Copy link
Collaborator

Summary

  • Introduces markdown-code to keep README bash examples synchronized with real source files in snippets/
  • Adds docs:check and docs:sync mise tasks for local use
  • Adds npx markdown-code check to the CI lint job to catch drift before it merges
  • Updates CONTRIBUTING.md: Go prerequisite 1.24 → 1.25, documents the snippet editing workflow

Note

The snippets/ files represent the current README examples. The README itself still needs to be wired up with snippet= directives (follow-up: fix examples first, then run npx markdown-code extract to link them). The CI check will pass vacuously until directives are added.

Test plan

  • mise run docs:check passes locally
  • CI lint job passes with new npx markdown-code check step
  • mise run docs:sync updates README after editing a snippet file

🤖 Generated with Claude Code

scalvert and others added 2 commits March 24, 2026 09:07
- Add .markdown-coderc.json config with .sh extension support
- Add snippets/ directory with bash example files for all README code blocks
- Add docs:check and docs:sync mise tasks
- Add npx markdown-code check step to CI lint job
- Update CONTRIBUTING.md: Go 1.24 → 1.25, document docs tasks and snippet workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix stale agents examples and lock all README bash code blocks into
real snippet files using markdown-code extract. CI now runs
`npx markdown-code check` to catch drift before it merges.

- Fix agents examples: .SearchAgentsResponse → unwrapped .agents[],
  agent_id → agentId (camelCase), add agents get/schemas --json examples
- Extract all README and CONTRIBUTING code blocks to snippets/
- Scope markdownGlob to {README,CONTRIBUTING}.md only

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@steve-calvert-glean steve-calvert-glean added documentation Improvements or additions to documentation enhancement New feature or request labels Mar 24, 2026
@steve-calvert-glean steve-calvert-glean merged commit 43b91e6 into main Mar 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants