Skip to content

Add automated link validation to GitHub workflow #295

@Karrenbelt

Description

@Karrenbelt

What content is missing?

There is currently no automated process to check the validity of links in the markdown files within the repository. This leads to potential broken links, affecting the user experience and the reliability of the documentation.

Related content in the wiki

Links break, such as this link here.

> Check this documentary with Dennis Ritchie and Ken Thompson, which perfectly captures spirit and ideas behind UNIX: https://yewtu.be/watch?v=tc4ROCJYbm0

Other relevant resources

N/A


Proposal

I propose to add a test as part of the workflow to automatically check the validity of all links in the markdown files within the repository. This workflow should:

  1. Gather all links, both to local documents/sections and to external resources.
  2. Verify that the links are valid by checking:
    • The path to a local document exists.
    • HTTP requests to external resources return a status code 200 (OK).

To optimize the process:

  • Return a complete report; do not error on first failure.
  • A retry mechanism with a backoff strategy is recommended.
  • A hashset, hashmap, or caching mechanism can be used to prevent redundant checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions