Skip to content

fix(a11y): descriptive image alt text in docs and generated tutorials#216

Open
MohammedAnasNathani wants to merge 1 commit into
alphacrack:mainfrom
MohammedAnasNathani:fix/a11y-image-alt-text
Open

fix(a11y): descriptive image alt text in docs and generated tutorials#216
MohammedAnasNathani wants to merge 1 commit into
alphacrack:mainfrom
MohammedAnasNathani:fix/a11y-image-alt-text

Conversation

@MohammedAnasNathani

Copy link
Copy Markdown

Summary

Closes #197 — first accessibility-focused fix on the board.

(a) Hand-written docs

Location Before After
README.md CI badge tests CI tests status
Contributors shield Contributors Contributor count
contrib.rocks grid Contributors (duplicate) Contributor avatars
examples/README.md self-demo filename restatement what the demo shows
examples/README.md toolhive filename restatement what the demo shows

(b) Generated tutorials (the product bug)

templates/tutorial.md.j2 hardcoded the same alt string for every repo:

![Demo video: every step above executing in a clean container](demo.gif)

Now:

![Demo video: {{ title }} — every step above executing in a clean container](demo.gif)

title is already passed to the template; guide-only runs still get a real title (no empty/stray dashes).

Tests

  • New regression: create demo.gif so has_video is true, assert alt contains the tutorial title
  • Guide-only (repo_url="") still renders sensible alt

Grounding: none — alt is prose/markup only; no command path changed.

Test plan

  • pytest tests/test_tutorial.py -k demo_alt (2 passed)

- README badges: CI tests status, Contributor count vs avatars
- examples/README: describe what each demo shows, not the filename
- tutorial.md.j2: interpolate {{ title }} into the demo.gif alt so every
  generated tutorial is unique for screen readers and SEO

Closes alphacrack#197
Copilot AI review requested due to automatic review settings July 23, 2026 00:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

a11y: image alt text — duplicate/thin alt in README + docs, and the generated tutorial ships identical generic alt for every repo

2 participants