links.txt checker script#115
Draft
mbarchie wants to merge 2 commits into
Draft
Conversation
Add a static and optional online checker for doc/links.txt, including syntax checks, unused-link detection, and HTTP probing with redirect handling. Jira: NCSDK-39692 Signed-off-by: Bartosz Meus <bartosz.meus@nordicsemi.no>
Add static validation to doc build and online checks in compliance for added links only (--changed-only), with permanent-redirect and 403 errors. Jira: NCSDK-39692 Signed-off-by: Bartosz Meus <bartosz.meus@nordicsemi.no>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds automated validation for
doc/links.txtand wires it into CI.scripts/check_links_txt.py: static checks (URL syntax, duplicate names, unresolved|ncs_version_number|, unused link warnings) and optional online checks (HTTP errors, permanent redirects)make html--changed-only), expands|ncs_version_number|fromnrf/VERSION, fails on permanent redirects and HTTP 403Local usage: