Skip to content
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

Add broken link checker #27

Open
iamrajiv opened this issue Sep 6, 2022 · 0 comments · May be fixed by #28
Open

Add broken link checker #27

iamrajiv opened this issue Sep 6, 2022 · 0 comments · May be fixed by #28
Labels
enhancement New feature or request

Comments

@iamrajiv
Copy link
Member

iamrajiv commented Sep 6, 2022

Problem statement

In every documentation site, there is a chance of having broken links inside the docs or xrefs to other docs. This is a problem because it can lead to a bad user experience. Going through the entire repository to fix all the links at once is hard and time-consuming. This is where the broken link checker comes in. It is a tool that can be used to find all the broken links in the documentation and fix them.

Describe the solution you'd like

A GitHub Action that can be run on the docs to check for broken links and xrefs. The GitHub Action should be able to create an issue on the repository with the broken links report, add labels to the issue and assign it to the relevant maintainers.

Additional context

Running a link check on each PR is a great idea in theory, but occasionally creates a bad developer experience because the link check fails for newly created pages. Propose that instead, we can run link checks on the latest branch. All links on the latest branch should always resolve, as that is the production branch. If a broken link is detected, an issue is created. This has the added benefit of detecting links that break passively when the target page is moved.

@iamrajiv iamrajiv added the enhancement New feature or request label Sep 6, 2022
@iamrajiv iamrajiv linked a pull request Sep 6, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant