add skill to find and improve alt text for pkgdown documentation#47
add skill to find and improve alt text for pkgdown documentation#47EmilHvitfeldt wants to merge 4 commits intoposit-dev:mainfrom
Conversation
gadenbuie
left a comment
There was a problem hiding this comment.
Thanks! This looks great. My biggest comment is around considering merging this skill with the quarto alt text skill, which I think would be a good idea.
|
|
||
| ```r | ||
| # Build only articles (faster than full site) | ||
| Rscript -e "pkgdown::build_articles()" |
There was a problem hiding this comment.
I was surprised this wasn't picked up by pkgdown::check_pkgdown() or pkgdown::pkgdown_sitrep(). Might be worth opening an issue in pkgdown to see if there could be a faster path.
There was a problem hiding this comment.
I have an PR for this here: r-lib/pkgdown#2985
|
Okay, did a bunch. Now there is a new skill I also added a PR to pkgdown r-lib/pkgdown#2985, to have it give better feedback on missing alt-text. however since that is not merged or on CRAN yet I have left the instructions to grep through instead |
Pretty much what the title says.
It is very similarly scoped to the quarto-alt-text skill. It is instructed to read nearby text for context, and follow the same rules. the difference is how it finds the images and where to place the alt text
Evaluation