Fixes Broken Links

Remove pitfalls for users navigating your documentation.

Hyperlint's Maintenance Agent can automatically identify broken internal links and create Pull Requests with working links.

How it works

Hyperlint's Maintenance Agent performs the following steps:

Periodic Website Scan

The Hyperlint crawler will periodically scan your configured documentation website for broken internal links based on the frequency that you configure.

To minimize unnecessary web traffic, Hyperlint will always crawl your website according to the RFC 9111 web caching standards.

After the crawl is complete, it will move to the next phase: analyzing and fixing the broken links.

Hyperlint will build an internal graph of your content and analyze the graph for broken internal links. The type of links that are currently supported are:

  1. HTML fragment links on the same page: for example a link on getting-started.md with an href linking to getting-started.md#quickstart or just #quickstart
  2. HTML fragment links between pages: for example a link on readme.md with an href linking to path/to/advanced-guide.md#kubernetes

Other types of internal links and external links are not supported yet, refer to the limitations section below.

Once Hyperlint has identified the broken links, it will use an AI to fix them based on a graph of the crawled content. If no broken links are able to be identified or fixed, it will wait until the next scheduled time before checking again.

If changes are detected, the Hyperlint will continue to the next step.

Pull request creation

If Hyperlint is confident in the changes that it proposes, it will create a pull request with the suggested changes. This will be a pull request to your repository and default branch.

The pull request will contain detailed context about each broken link and the reasoning behind choosing the fixed version of the link. If, after your review, you'd like to accept the changes, you can merge the pull request. If not, just close it out!

Limitations

The following types of links are not supported yet:

  1. Links to non-existent internal pages: for example a link on tutorial.md with an href linking to user-guide.md, but user-guide.md does not exist on your documentation website.
  2. Links to external websites: for example to https://broken-website.io. These links will be ignored by Hyperlint for now.

Additional options: Continuous Integration

Rather than crawling your documentation website after it has been deployed, Hyperlint can build your documentation from source and analyze it from there. This is the recommended approach for extremely large documentation websites over 2K pages.

How to get started

Reach out to [email protected] to get started with the Fixes Broken Links Maintenance Agent.

Other Maintenance Agent Tasks

Hyperlint also supports other maintenance agent tasks, reach out to [email protected] if you'd like to learn more or ask about other monitors.