-
Notifications
You must be signed in to change notification settings - Fork 26
Run link checker on Markdown files #1291
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
base: main
Are you sure you want to change the base?
Run link checker on Markdown files #1291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this contribution and apologies for not reviewing it sooner.
Whilst this pull request currently adds the Markdown link checker GitHub action, as suggested in the issue, merging this as it is will block any future pull requests until all of the broken links that the action finds are fixed.
To get a list of the broken links it is possible to run the action locally using the act tool. Fixing them then requires either putting in an exclusion pattern/rule (i.e. for example URLs), or finding the new/correct link and replacing it.
…esolves cambridge-cares#464 Fix existing broken links
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes * rename workflow --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes * rename workflow * test --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes * rename workflow * test * undo test --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes * rename workflow * test * undo test * fix links --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
* dev-markdown-link-check: add github workflow to check markdown links. Resolves cambridge-cares#464 * fix markdown links * fix broken links * fix readmes * fix links * fix broken links and configure github action * add on merge for modified files * fix config * add on merge fix * finish link fixes * finish link fixes * rename workflow * test * undo test * fix links * fix config --------- Co-authored-by: Myles MacDonald <mylesmacdonald@Myless-Mac-mini.local>
@@ -0,0 +1,65 @@ | |||
{ | |||
"ignorePatterns": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certain links prevent the workflow from working even though they're fine, e.g. dropbox. I've added such to this list. The workflow is buggy with header references (#) and mailto so ignoring those as well.
and ignoring /user, /explore and /images/defaults because it's part of the website code
Add github workflow to check markdown links for broken links before pushing.
Resolves #464