-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: differentiate between links and images in validation reports #143
Comments
Hi Joel! It should be displayed in a list below these warnings as one of the first things that sandpaper does is call sandpaper::validate_lesson()
── Validating Fenced Divs ────────────────────────────────────────────────────────────────────
── Validating Internal Links and Images ──────────────────────────────────────────────────────
! There were errors in 1/166 links
◌ Some linked internal files do not exist <https://carpentries.github.io/sandpaper/articles/include-child-documents.html#workspace-consideration>
episodes/episodes.Rmd:893 [missing file]: [Example of Wrapped Alt Text (with apologies to William Carlos Williams)](fig/freezer.png) If you are looking on GitHub, these can be found in the summary of each build: For example, here is the summary for the most recent build of sandpaper docs showing the file that is missing to demonstrate the value of alt text: That being said, do you think it would be helpful to populate the source marker pane in RStudio (akin to the way {lintr} displays errors)? |
Also, note: everything regarding the validation is within the realm of {pegboard}, so I'm moving the issue over there. |
Hm... I just updated to the most recent
Furthermore, the images that have been reported as missing alt-text actually do have alt-text, but I think that should be a separate issue. FYI the lesson I am trying to build is here: https://github.com/carpentries-incubator/targets-workshop |
Sure, although I think if the checks were reported correctly during |
Ah! I think I see what the problem is! It's none other than our old friend, fluid representations! In terms of {pegboard}, it processes images and links the same way because an image is a special class of link, and I never ended up writing text to distinguish them -_- For the breadcrumbs, when you call Lines 629 to 635 in e7e5c45
This will call the (poorly documented) Lines 58 to 63 in e7e5c45
Lines 36 to 39 in e7e5c45
What I could do is to modify the |
In terms of the alt text reporting, the reports are correct. The markdown syntax for The Workbench comes from pandoc, which uses the square braces for captions, not alt text (see https://carpentries.github.io/sandpaper-docs/style.html#figures). I would suggest something like this: ![The three species of penguins in the `palmerpenguins` dataset. Artwork by @allison_horst.
](https://allisonhorst.github.io/palmerpenguins/reference/figures/lter_penguins.png){
alt="Illustration of three penguins with colourful backgrounds.
Labels above their heads read: 'Chinstrap!', 'Gentoo!', and 'Adélie'"
} |
I have made the release and it will be generally available within the hour. |
When lesson validation runs (via
build_lesson()
), I get a message about broken links, but no indication of the actual URL, so it is difficult to act on this information.sandpaper v 0.14.1
The text was updated successfully, but these errors were encountered: