Skip to content

Example gallery: give each GIF alternative text and a link to its code #424

Todo

Description

@ShisatoYano

Problem

generate_example_gallery.py writes every demo image of doc/EXAMPLES.md as ![](path) (line 170), so:

  • No image has alternative text. A screen reader announces only the file name, and nothing is shown if the GIF fails to load
  • No entry links to its code. A learner who finds an interesting GIF has to search src/simulations for the script that made it

Expected change

  • Use the entry's Title as the alternative text: ![Pure Pursuit Path Tracking](...)
  • Add a link to the simulation's folder under each heading, for example Code: [src/simulations/path_tracking/pure_pursuit_path_tracking](/src/simulations/path_tracking/pure_pursuit_path_tracking). Use a repository-root link (starting with /src/): it works on GitHub, and the book's doc/conf.py rewrites it to a GitHub URL
  • Update the regular expression in test/test_generate_example_gallery.py:22, which expects ![], and check that every folder link exists, like the image paths
  • Don't edit doc/EXAMPLES.md by hand: CI regenerates it after merge

How I check it works

  • python generate_example_gallery.py and the diff of doc/EXAMPLES.md: every image has its title as alternative text, and every entry has a code link (don't commit this file)
  • The links open the right folders on GitHub (check two or three in the PR's branch)
  • . run_test_suites.sh passes

How to contribute

  • Comment /claim here to get assigned
  • Write Closes #<this issue> in the description. No images are needed; paste one regenerated entry of doc/EXAMPLES.md instead

Good first issue: one function in a standard-library-only script, with a test next to it.

Activity

  1. added
    enhancement
    good first issue
    on Dec 4, 2026
  2. CodeCraftsmanRaj commented on Dec 5, 2026

    @CodeCraftsmanRaj

    /claim

  3. github-actions commented on Dec 5, 2026

    @github-actions
    Contributor

    @CodeCraftsmanRaj This issue is now assigned to you. Thank you!

    • Open a pull request with Closes #424 in the description.
    • If you have already opened a pull request, edit its description (for example, add a line) to run the check again.
    • If neither a pull request nor a comment from you on this issue appears within 14 days, you are unassigned so that someone else can take it. You can claim it again later.

    See Claim an issue before you start.

  4. moved this from Todo to In Progress in AVCBG Work Planon Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementgood first issue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions