Skip to content

[feat] add dead link checker to CI/CD #19143

Description

@Anonymitaet

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Issue

Sometimes 404 errors occur in docs.

Currently, we use the following ways to check them:

Method 1: use tools to check them manually at regular intervals

Disadvantages

  • It's easy to forget to do this task.

  • It entirely depends on the contributor's willingness.

Method 2: check the links through the local preview process

It reminds you of 404 errors if any.

Disadvantages

  • Some contributors do not preview docs on the local machines and the link check step is skipped.

  • Even though contributors preview docs and get reminders of 404 issues, they can ignore this error and still submit doc PRs.

Solution

Solution

Can we implement a dead link check to the CI/CD process in pulsar-site?

Example

Skywalking
image

Benefits

  • Docs submitted from all contributors can be checked in a prominent and easy way

  • If we want to ensure no 404 links in docs, we can set this check as required. In this way, PRs can not be merged with 404 issues.

  • (Other doc-related checks, e.g., grammar checks, typo checks, etc can also be implemented)

cc @momo-jun @DaveDuggins @D-2-Ed

Alternatives

N/A

Anything else?

N/A

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cidocYour PR contains doc changes, no matter whether the changes are in markdown or code files.type/featureThe PR added a new feature or issue requested a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions