-
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
Open
mayomatsuda
wants to merge
43
commits into
cambridge-cares:main
Choose a base branch
from
mayomatsuda:dev-markdown-link-check
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 38 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
67771a6
dev-markdown-link-check: add github workflow to check markdown links.…
mayomatsuda 0d5c309
Merge branch 'main' into dev-markdown-link-check
mayomatsuda 460d477
fix markdown links
mayomatsuda bf282ef
fix markdown links
mayomatsuda 9dc54e0
fix broken links
mayomatsuda 1258f53
merge main
mayomatsuda 66fbdfb
fix readmes
mayomatsuda 7767353
merge main
1856c43
fix links
6517fff
Merge branch 'main' into dev-markdown-link-check
a46e9d9
fix broken links and configure github action
mayomatsuda 8d3f3d7
add on merge for modified files
mayomatsuda cde5a3f
dev-markdown-link-check: add github workflow to check markdown links.…
mayomatsuda 7f3d05e
fix config
mayomatsuda 0ded825
fix config
mayomatsuda 442b415
Dev markdown link check (#4)
mayomatsuda 39e9a4f
add on merge fix
mayomatsuda 2d3ad19
Dev markdown link check (#5)
mayomatsuda 71689b5
remove on merge
mayomatsuda 3142610
merge
mayomatsuda cd659bb
finish link fixes
mayomatsuda a455cef
finish link fixes
mayomatsuda ef473c8
Dev markdown link check (#7)
mayomatsuda 306ac01
empty commit to test
mayomatsuda aeebedd
Merge branch 'main' into dev-markdown-link-check
mayomatsuda a507a1f
Dev markdown link check (#8)
mayomatsuda 70cf930
rename workflow
mayomatsuda 056ccb2
Dev markdown link check (#9)
mayomatsuda c5bf894
test
mayomatsuda b66a6c8
Dev markdown link check (#10)
mayomatsuda 5cad977
undo test
mayomatsuda d60c5da
undo test
mayomatsuda b0f8192
Dev markdown link check (#11)
mayomatsuda 318b25d
Merge branch 'main' into dev-markdown-link-check
mayomatsuda d963046
fix links
mayomatsuda 28a7fcb
Dev markdown link check (#12)
mayomatsuda 3412d73
Merge branch 'main' into dev-markdown-link-check
mayomatsuda fd50a15
fix config
mayomatsuda 45e27a0
Dev markdown link check (#13)
mayomatsuda 960b63c
Merge branch 'main' into dev-markdown-link-check
mayomatsuda 88f0f70
fix links
mayomatsuda aa7cf32
Merge branch 'main' into dev-markdown-link-check
mayomatsuda 7098006
accept 202
mayomatsuda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "http://localhost(:\\d+)?(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "http://HOST:PORT?(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https://www.cmegroup.com?(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https?://(www\\.)?theworldavatar.com(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https://abc.xyz?(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https://maven.pkg.github.com/cambridge-cares/TheWorldAvatar/?" | ||
}, | ||
{ | ||
"pattern": "https?://twitter.com/?" | ||
}, | ||
{ | ||
"pattern": "https?://www.w3.org/?" | ||
}, | ||
{ | ||
"pattern": "https?://www.ontology-of-units-of-measure.org/?" | ||
}, | ||
{ | ||
"pattern": "https?://kg.cmclinnovations.com/mods-agent(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https?://github.com/[^/]+/[^/]+/issues(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "https?://www.dropbox.com/?" | ||
}, | ||
{ | ||
"pattern": "https?://docs.unity3d.com/?" | ||
}, | ||
{ | ||
"pattern": "#(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "/user(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "/explore(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "/images/defaults(/[^ ]*)?" | ||
}, | ||
{ | ||
"pattern": "mailto:(/[^ ]*)?" | ||
} | ||
], | ||
"retryCount": 3, | ||
"aliveStatusCodes": [ | ||
200, | ||
403, | ||
503, | ||
0 | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# | ||
# This workflow contains a job to check for broken links within Markdown files in the repository. | ||
# | ||
name: Check Markdown links | ||
|
||
# Trigger this workflow during pushes to the 'main' branch if changes to Markdown files | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**.md' | ||
- '**.MD' | ||
|
||
jobs: | ||
# Check for broken links within all Markdown files | ||
markdown-link-check: | ||
name: Check markdown files for broken links | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Markdown links check | ||
uses: ruzickap/action-my-markdown-link-checker@v1 | ||
with: | ||
config_file: .github/workflows/twa-md-push.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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