Skip to content

Add linkchecker cli tool#174

Merged
pedro-psb merged 1 commit intopulp:mainfrom
pedro-psb:feat/add-linkchecker-tool2
Mar 3, 2026
Merged

Add linkchecker cli tool#174
pedro-psb merged 1 commit intopulp:mainfrom
pedro-psb:feat/add-linkchecker-tool2

Conversation

@pedro-psb
Copy link
Member

@pedro-psb pedro-psb commented Jan 30, 2026

Add a link checker cli tool to pulp-docs.
In a first pass, the link checker is designed to only look for internal links that uses site:PATH syntax.
Probably we want to improve that later.

Closes #34

@pedro-psb pedro-psb force-pushed the feat/add-linkchecker-tool2 branch 2 times, most recently from f265d19 to 1f79861 Compare January 30, 2026 17:47
@pedro-psb pedro-psb force-pushed the feat/add-linkchecker-tool2 branch 2 times, most recently from 8a38c1e to 7d7cee4 Compare February 28, 2026 15:07
@pedro-psb pedro-psb changed the title Add linkchecker cli and pre-commit hook Add linkchecker cli tool Mar 2, 2026
@pedro-psb pedro-psb force-pushed the feat/add-linkchecker-tool2 branch 4 times, most recently from d56e885 to 04bdbc7 Compare March 3, 2026 14:04
@pedro-psb pedro-psb enabled auto-merge (rebase) March 3, 2026 14:04
@pedro-psb pedro-psb mentioned this pull request Mar 3, 2026
3 tasks
lint:
pre-commit run -a

docs-linkcheck:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this have a .PHONY?

return
print(HEADER_ERROR.format(n=len(link_errors)))
for error in link_errors:
# line_str = error.src_line.strip()[:85] + " (...)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a leftover comment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup

@pedro-psb pedro-psb force-pushed the feat/add-linkchecker-tool2 branch from 04bdbc7 to 46c9d32 Compare March 3, 2026 18:59
@pedro-psb pedro-psb merged commit 345efd3 into pulp:main Mar 3, 2026
11 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add internal link checker

2 participants