bitflicker64 opened a new pull request, #452:
URL: https://github.com/apache/incubator-hugegraph-doc/pull/452
<!--
Thank you very much for contributing to Apache HugeGraph, we are happy
that you want to help us improve it!
Some tips for you:
1. If this is your first time to submit PR, please read the
[contributing
guidelines](https://github.com/apache/incubator-hugegraph-doc/blob/master/contribution.md)
2. If a PR fix/close an issue, type the message "close xxx" below
(Remember to update both EN & CN doc)
3. Build the website locally after you finish the PR, and check if the
changes are correct, THX~
-->
## Purpose of the PR
- close #451 <!-- or "fix #xxx", "link #xxx" -->
<!-- Better to paste the screenshot diff here, "xxx" is the ID-link of
related issue, e.g: #1024 -->
### What this PR does
This PR hardens the documentation link validation used in CI.
Previously, CI could pass even when documentation contained broken internal
links due to limited link detection and path resolution. This change expands
validation coverage and ensures CI fails when unresolved internal links are
present.
### Key changes
- Validate all inline Markdown links with accurate file and line numbers
- Correctly resolve internal paths, including:
- `/docs/* → content/en/docs/*`
- `/cn/docs/* → content/cn/docs/*`
- absolute root paths
- relative links
- Exclude fenced code blocks from validation without breaking line numbers
- Skip external links and Hugo shortcodes intentionally
- Validate non-Markdown assets separately (images, configs, etc.)
- Fail CI deterministically on unresolved internal links
### Notes
This change surfaces existing broken documentation links that CI was
previously not detecting.
Those issues can be addressed incrementally in follow-up PRs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]