Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
There were a few false positives in the broken link detection. The main issue was that some links had a trailing slash and some did not:
https://umcarpentries.org/intro-curriculum-r/05-r-markdown/ vs
https://umcarpentries.org/intro-curriculum-r/05-r-markdown
In that case, it's hard to know whether 05-r-markdown is a page or a folder. I changed the code to request the page and then check if the server issued a redirect. So if you request the page without the slash, you are redirected to the version with the slash (the canonical name for the resource). This means we a better able to check relative links in that case.
It's still not possible for the client to know for sure that https://umcarpentries.org/intro-curriculum-r/05-r-markdown/ and https://umcarpentries.org/intro-curriculum-r/05-r-markdown/index.html are the same resources. It would be nice to standardize all URLs either to use the "index.html" file or to leave it off and end the path with a slash. But this just means that values are repeated for the identical pages with different URLs.
I also cleaned up some existing broken links. I noticed that many of the existing links in the Rmd files were already fixed by @kelly-sovacool but it seems that the Rmd files were not rendered into HTML files for the website. I am unable to run the build steps on my own machine to render the site.
The last issue is that all-in-one page (aio) has several duplicate IDs. Sections like "#bonus" are repeated in multiple lessons. So when everything is combined on the same page, those IDs are no longer unique. This means that if you click a later "bonus" link, you are sent to the first bonus section, for example. I'm not sure how important that is but we could make the section names unique across all lessons.
Checklist
_episodes_rmd/
, runmake lesson-md
.make serve
locally to view the website and make sure the formatting renders correctly.