File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,33 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15+ check-links :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v4
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@v5
24+ with :
25+ python-version : ' 3.10'
26+
27+ - name : Install uv
28+ run : |
29+ curl -LsSf https://astral.sh/uv/install.sh | sh
30+ echo "$HOME/.cargo/bin" >> $GITHUB_PATH
31+
32+ - name : Install doc-builder
33+ run : |
34+ uv pip install --system git+https://github.com/huggingface/doc-builder.git@main
35+
36+ - name : Check documentation links
37+ run : |
38+ uv run doc-builder check-links docs/source/en
39+
1540 build :
41+ needs : check-links
1642 uses : huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
1743 with :
1844 commit_sha : ${{ github.event.pull_request.head.sha }}
You can’t perform that action at this time.
0 commit comments