Skip to content

docs: fix MD040 lint and make scripting code blocks copy-pasteable - #112

Merged
oguyon merged 2 commits into
framework-devfrom
docs/scripting-copyable-blocks
Mar 21, 2026
Merged

docs: fix MD040 lint and make scripting code blocks copy-pasteable#112
oguyon merged 2 commits into
framework-devfrom
docs/scripting-copyable-blocks

Conversation

@oguyon

@oguyon oguyon commented Mar 21, 2026

Copy link
Copy Markdown
Member

Summary

Two documentation fixes:

  1. docs/pgo.md: Add text language specifiers to 3 fenced code blocks that were failing CI markdown lint (MD040)
  2. docs/cli/scripting.md: Remove all 297 milk-cli > prompts from code blocks and add #!/usr/bin/env milk-cli -s shebangs — code is now directly copy-pasteable as scripts

Also updates .agents/rules/documentation-standards.md to permanently enforce:

  • MD040: every fenced code block must have a language specifier
  • No prompts ($ or milk-cli >) in code blocks — use shebangs instead

Prompt Summary

User reported recurring CI lint failures from bare fenced code blocks (MD040) and requested that scripting doc code blocks be copy-pasteable without prompts, using shebangs instead.

AI Authorship

  • Model: Claude Opus 4 (claude-opus-4-20250514, Anthropic)
  • User edits: None

oguyon added 2 commits March 20, 2026 20:28
- docs/pgo.md: add 'text' language to three bare code blocks
  at lines 276, 751, 761 that were failing CI lint
- .agents/rules/documentation-standards.md: strengthen the
  code block rule to explicitly mention MD040 enforcement
  and the 'text' language for non-code output
- Remove all 297 'milk-cli >' prompts from code blocks
- Add #!/usr/bin/env milk-cli -s shebang to every bash block
- Update documentation-standards rule: no prompts in code
  blocks, use shebangs instead
@oguyon
oguyon merged commit 4e736fc into framework-dev Mar 21, 2026
8 of 9 checks passed
@oguyon
oguyon deleted the docs/scripting-copyable-blocks branch March 21, 2026 06:30
oguyon added a commit that referenced this pull request May 21, 2026
)

* fix: add language specifiers to fenced code blocks (MD040)

- docs/pgo.md: add 'text' language to three bare code blocks
  at lines 276, 751, 761 that were failing CI lint
- .agents/rules/documentation-standards.md: strengthen the
  code block rule to explicitly mention MD040 enforcement
  and the 'text' language for non-code output

* docs: remove prompts from scripting code blocks for copy-paste

- Remove all 297 'milk-cli >' prompts from code blocks
- Add #!/usr/bin/env milk-cli -s shebang to every bash block
- Update documentation-standards rule: no prompts in code
  blocks, use shebangs instead
oguyon added a commit that referenced this pull request May 21, 2026
)

* fix: add language specifiers to fenced code blocks (MD040)

- docs/pgo.md: add 'text' language to three bare code blocks
  at lines 276, 751, 761 that were failing CI lint
- .agents/rules/documentation-standards.md: strengthen the
  code block rule to explicitly mention MD040 enforcement
  and the 'text' language for non-code output

* docs: remove prompts from scripting code blocks for copy-paste

- Remove all 297 'milk-cli >' prompts from code blocks
- Add #!/usr/bin/env milk-cli -s shebang to every bash block
- Update documentation-standards rule: no prompts in code
  blocks, use shebangs instead
oguyon added a commit that referenced this pull request May 22, 2026
)

* fix: add language specifiers to fenced code blocks (MD040)

- docs/pgo.md: add 'text' language to three bare code blocks
  at lines 276, 751, 761 that were failing CI lint
- .agents/rules/documentation-standards.md: strengthen the
  code block rule to explicitly mention MD040 enforcement
  and the 'text' language for non-code output

* docs: remove prompts from scripting code blocks for copy-paste

- Remove all 297 'milk-cli >' prompts from code blocks
- Add #!/usr/bin/env milk-cli -s shebang to every bash block
- Update documentation-standards rule: no prompts in code
  blocks, use shebangs instead
DasVinch pushed a commit that referenced this pull request May 29, 2026
)

* fix: add language specifiers to fenced code blocks (MD040)

- docs/pgo.md: add 'text' language to three bare code blocks
  at lines 276, 751, 761 that were failing CI lint
- .agents/rules/documentation-standards.md: strengthen the
  code block rule to explicitly mention MD040 enforcement
  and the 'text' language for non-code output

* docs: remove prompts from scripting code blocks for copy-paste

- Remove all 297 'milk-cli >' prompts from code blocks
- Add #!/usr/bin/env milk-cli -s shebang to every bash block
- Update documentation-standards rule: no prompts in code
  blocks, use shebangs instead
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