[Merged by Bors] - GitHub Action: Check local Markdown links on push#2067
[Merged by Bors] - GitHub Action: Check local Markdown links on push#2067FlyingRatBull wants to merge 32 commits intobevyengine:mainfrom
Conversation
|
Could you put this action into our existing CI workflow? https://github.com/bevyengine/bevy/blob/main/.github/workflows/ci.yml For external links
|
* Fix [404 on crates.io](rust-lang/crates.io#788) * Only block external checks on github.com
|
I added external links to be checked, but for whatever reason, it gets stuck in a redirect loop for Should I explicitly ignore this link in the markdown, in the configuration file or what would be the desired action for this? I'll move the action into the |
|
I moved the action into |
Not sure why it would fail, it's probably fine to ignore it unless someone else has an idea? Small nit: I think the config file should go in https://github.com/bevyengine/bevy/tree/main/.github/linters. What do you think? |
I ignored it in the Markdown file as opposed to the configuration file because this way, if the link get's removed/changed, the ignore block can be reviewed as well.
Good idea. Moved it there and renamed it to |
|
Can bors be triggered again? The new check should now succeed, now that the dependent PRs have been merged. |
|
you'll need to rebase your PR on main to fix the CI |
Thanks, will do |
* Fix [404 on crates.io](rust-lang/crates.io#788) * Only block external checks on github.com
|
Sorry for the messy git - There was some confusion because of a duplicate broken link. |
|
bors r+ |
Adds an GitHub Action to check all local (non http://, https:// ) links in all Markdown files of the repository for liveness. Fails if a file is not found. # Goal This should help maintaining the quality of the documentation. # Impact Takes ~24 seconds currently and found 3 dead links (pull requests already created). # Dependent PRs * #2064 * #2065 * #2066 # Info See [markdown-link-check](https://github.com/marketplace/actions/markdown-link-check). # Example output ``` FILE: ./docs/profiling.md 1 links checked. FILE: ./docs/plugins_guidelines.md 37 links checked. FILE: ./docs/linters.md [✖] ../.github/linters/markdown-lint.yml → Status: 400 [Error: ENOENT: no such file or directory, access '/github/workspace/.github/linters/markdown-lint.yml'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/github/workspace/.github/linters/markdown-lint.yml' } ``` # Improvements * Can also be used to check external links, but fails because of: * Too many requests (429) responses: ``` FILE: ./CHANGELOG.md [✖] #1762 → Status: 429 ``` * crates.io links respond 404 ``` FILE: ./README.md [✖] https://crates.io/crates/bevy → Status: 404 ```
|
Pull request successfully merged into main. Build succeeded: |
Adds an GitHub Action to check all local (non http://, https:// ) links in all Markdown files of the repository for liveness. Fails if a file is not found. # Goal This should help maintaining the quality of the documentation. # Impact Takes ~24 seconds currently and found 3 dead links (pull requests already created). # Dependent PRs * bevyengine#2064 * bevyengine#2065 * bevyengine#2066 # Info See [markdown-link-check](https://github.com/marketplace/actions/markdown-link-check). # Example output ``` FILE: ./docs/profiling.md 1 links checked. FILE: ./docs/plugins_guidelines.md 37 links checked. FILE: ./docs/linters.md [✖] ../.github/linters/markdown-lint.yml → Status: 400 [Error: ENOENT: no such file or directory, access '/github/workspace/.github/linters/markdown-lint.yml'] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/github/workspace/.github/linters/markdown-lint.yml' } ``` # Improvements * Can also be used to check external links, but fails because of: * Too many requests (429) responses: ``` FILE: ./CHANGELOG.md [✖] bevyengine#1762 → Status: 429 ``` * crates.io links respond 404 ``` FILE: ./README.md [✖] https://crates.io/crates/bevy → Status: 404 ```
Adds an GitHub Action to check all local (non http://, https:// ) links in all Markdown files of the repository for liveness.
Fails if a file is not found.
Goal
This should help maintaining the quality of the documentation.
Impact
Takes ~24 seconds currently and found 3 dead links (pull requests already created).
Dependent PRs
Info
See markdown-link-check.
Example output
Improvements