Skip to content

docs: enable markdownlint MD040 and tag all fenced code blocks (supersedes #30)#44

Merged
potiuk merged 2 commits into
apache:mainfrom
potiuk:feat/doc-md040
May 4, 2026
Merged

docs: enable markdownlint MD040 and tag all fenced code blocks (supersedes #30)#44
potiuk merged 2 commits into
apache:mainfrom
potiuk:feat/doc-md040

Conversation

@potiuk

@potiuk potiuk commented May 4, 2026

Copy link
Copy Markdown
Member

Summary

Rebase + extend #30 (by @andreahlert). The original PR had drifted out of mergeability and didn't yet cover the pr-management-* skill family (lifted in #33, renamed in #35).

Two commits:

  1. docs: enable markdownlint MD040 and tag all fenced code blocks@andreahlert's original commit, rebased onto current main. Git's similarity-detection followed the file renames (refactor(skills): rename skills with category prefixes (setup-/security-) #31, refactor(skills): rename to type-what_you_operate_on-action convention #35) and moves (docs: restructure into docs/<skill-family>/, slim README to install + overview #36) cleanly — no conflicts.
  2. docs: extend MD040 tagging to skills added since #30 — 20 newly-untagged fences across the 3 pr-management-* skills. Same convention as docs: enable markdownlint MD040 and tag all fenced code blocks #30 (most → text; markdown-link / list-item examples → markdown).

Combined diff

Family Files Fences New tags
apache-steward framework (commit 1, rebased from #30) 19 64 mostly text, a few html / markdown / yaml
pr-management-* skills (commit 2, new) 9 20 mostly text, two markdown

.markdownlint.json flips MD040: false → true (commit 1). After both commits land, prek run --all-files reports zero MD040 violations across the tree.

Test plan

Attribution

Original commit f01eeea is by @andreahlert (preserved verbatim through the rebase). Closes #30 once this lands.

🤖 Generated with Claude Code

andreahlert and others added 2 commits May 4, 2026 12:07
Follow-up to apache#18. Flips MD040 from `false` to `true` and tags the 64
previously untagged fences across the tree.

Most fences ended up `text` (MCP call sketches, URL examples, dir
trees, plain output, commit trailers). 3 got `html` for HTML-comment
idempotency markers and the <details> envelope, 3 `markdown` for the
AI-disclosure block and rollup body samples, 1 `yaml` for the
subagent return block in sync-security-issue.

One nested-fence case in allocate-cve/SKILL.md needed the outer
fence promoted from 3 to 4 backticks so the inner 3-backtick block
renders as an actual nested code block instead of breaking the outer
one.

Signed-off-by: André Ahlert <andre@aex.partners>
apache#30 was opened against an earlier tree state; the pr-management
skill family (lifted in apache#33, renamed to type-what-action in
apache#35) added 9 new skill supporting files with 20 untagged
fences that fail markdownlint MD040 once it's enabled.

This commit applies the same tagging convention apache#30 established
for the security family + tools to the new pr-management files:

  pr-management-triage/fetch-and-batch.md     1 fence
  pr-management-triage/comment-templates.md   2 fences  → markdown
  pr-management-triage/interaction-loop.md    4 fences  → text (UI mockups)
  pr-management-triage/workflow-approval.md   2 fences  → text (UI mockups)
  pr-management-stats/fetch.md                3 fences  → text (search queries)
  pr-management-stats/render.md               3 fences  → text (output samples)
  pr-management-stats/classify.md             3 fences  → text (pseudocode)
  pr-management-code-review/review-flow.md    1 fence   → text (CLI mockup)
  pr-management-code-review/prerequisites.md  1 fence   → text (HTTP error)

Most fences ended up `text` (the same catch-all apache#30's commit
message used for "MCP call sketches, URL examples, dir trees,
plain output"). Two `markdown` fences in
`pr-management-triage/comment-templates.md` because the
content is a markdown link / list item example that GitHub
should render as markdown.

prek run --all-files clean. MD040 reports zero violations
across the tree.

Generated-by: Claude Code (Claude Opus 4.7)
@potiuk

potiuk commented May 4, 2026

Copy link
Copy Markdown
Member Author

Rebased and merged :).

@potiuk potiuk merged commit 5eee612 into apache:main May 4, 2026
6 checks passed
@andreahlert andreahlert added the mode:platform Substrate / infra — not a mode (sandbox, CI, validators) label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mode:platform Substrate / infra — not a mode (sandbox, CI, validators)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants