[feat] add dead link checker to CI/CD #19144
Anonymitaet
started this conversation in
Ideas
Replies: 2 comments 2 replies
|
FYI: I'm going to enable Docusaurus builtin broken links checker in the site repo in this month.
I'll enable the warning level first to get a report and see how to fix. Other integrations proposed here can be good to have a try. But I think we should enable them on the site repo, right? |
1 reply
|
The Docu built-in checker sounds better. Does the detection happen during the local preview? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
Dr. Link Checker
W3C Link Checker
Dead Link Checker
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 need to 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
Can we implement a
dead link checkto the CI/CD process inpulsar-site?Example
Skywalking

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
All reactions