Skip to content

Show a warning message when links are broken #1111

@gianlucadonato

Description

@gianlucadonato

🚀 Feature

Show a warning message in the console (maybe flaggable in the options) that outputs a log when a link inside the documentation is broken.

Have you read the Contributing Guidelines on issues?

Yes.

Motivation

It can happen to have brokens links in the documentation that are caused by a change in the file id/path (e.g. a file is renamed, moved or simply there's a typo in the link) and then forgetting to update the link that points to it.
It's a pain discovering where they are in the docs and fix it.

Pitch

It would be nice to introduce a check when running docusaurus start or docusaurus build that shows a warning message if a link in the markdown has an unresolved path.

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