Skip to content

Check that articles include alt-text for all images#2522

Merged
hadley merged 5 commits intomainfrom
alt-text
May 13, 2024
Merged

Check that articles include alt-text for all images#2522
hadley merged 5 commits intomainfrom
alt-text

Conversation

@hadley
Copy link
Member

@hadley hadley commented May 8, 2024

Need to merge after #2518 (since the vignette will need a small update) and #2516 (since check_built() has moved).
Fixes #2357

@maelle maybe it's worth parsing the image paths in an attempt to guess at the chunk label? Not sure how useful that will be more people, given that the structure is pretty simple.

Need to merge after #2518 (since the vignette will need a small update) and #2516 (since `check_built()` has moved).

Fixes #2357
@hadley hadley requested a review from maelle May 8, 2024 22:44
@github-actions
Copy link

github-actions bot commented May 8, 2024

Copy link
Collaborator

@maelle maelle left a comment

Choose a reason for hiding this comment

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

maybe it's worth parsing the image paths in an attempt to guess at the chunk label? Not sure how useful that will be more people, given that the structure is pretty simple.

I feel it could be the work of some package external to pkgdown, that'd do some sort of static analysis of R Markdown/Quarto files, especially as really parsing chunk options (instead of guessing) might require new dependencies? The message that pkgdown would output after this PR seems already very informative to me.

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.

Warn on missing alt-text

3 participants