Skip to content

feat(rules): docs-images gives every image in the docs alt text - #60

Draft
PiquelChips wants to merge 1 commit into
feat/rule-docs-summaryfrom
feat/rule-docs-images
Draft

PiquelChips wants to merge 1 commit into
feat/rule-docs-summaryfrom
feat/rule-docs-images

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #59; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

D14: images say what they show, for screen readers and for agents reading the Markdown. Whether the wording is good is a cleanup-pass judgement.

  • Every image in a Markdown file has alt text: no ![](…), and every <img> has a non-empty alt.
  • Fenced code blocks and inline code are skipped (the crate's own README quotes <img>).

Measured

piqueld sourceorigin DirkEngine
Violations 0 0 0

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

A guard.

Testing

  • New fixture test: an image with alt text, ![], an <img> with and without alt, and one in inline code and a code block.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (A new rule: each repository fixes its violations (cargo xtask standard --fix where a fix exists) or adds a deviation with its reason.)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@PiquelChips
PiquelChips force-pushed the feat/rule-docs-images branch from 1491827 to b826e05 Compare November 22, 2026 22:30
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