Skip to content

Conversation

stevhliu
Copy link
Member

Adds link checker to CI based on suggestion in #12487

@stevhliu stevhliu requested a review from sayakpaul October 15, 2025 05:55
Comment on lines 34 to 45
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Install doc-builder
run: |
uv pip install --system git+https://github.com/huggingface/doc-builder.git@main

- name: Check documentation links
run: |
uv run doc-builder check-links docs/source/en
Copy link
Member

Choose a reason for hiding this comment

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

We could also combine this here:

So, we would first check for the links and then trigger

WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sounds good!

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Just one comment. Thanks for doing this!

@stevhliu stevhliu merged commit dbe4136 into huggingface:main Oct 16, 2025
15 of 17 checks passed
@stevhliu stevhliu deleted the check-link-ci branch October 16, 2025 17:38
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.

2 participants