Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
91536f2d
Unverified
Commit
91536f2d
authored
Oct 13, 2025
by
Nikita Titov
Committed by
GitHub
Oct 13, 2025
Browse files
[ci][docs] use lychee GitHub actions for checking broken links (#7058)
parent
86b2cc89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
.ci/build-docs.sh
.ci/build-docs.sh
+13
-0
.github/workflows/lychee.yml
.github/workflows/lychee.yml
+14
-3
.github/workflows/static_analysis.yml
.github/workflows/static_analysis.yml
+1
-1
No files found.
.ci/
test
-docs.sh
→
.ci/
build
-docs.sh
View file @
91536f2d
...
@@ -10,20 +10,4 @@ conda env create \
...
@@ -10,20 +10,4 @@ conda env create \
# shellcheck disable=SC1091
# shellcheck disable=SC1091
source
activate test-env
source
activate test-env
# build docs
make
-C
docs html
||
exit
1
make
-C
docs html
||
exit
1
if
[[
$TASK
==
"check-links"
]]
;
then
# check docs for broken links
conda
install
-y
-n
test-env
'lychee>=0.20.1'
# to see all gained files add "--dump-inputs" flag
# to see all gained links add "--dump" flag
lychee
\
"--config=./docs/.lychee.toml"
\
"--"
\
"**/*.rst"
\
"**/*.md"
\
"./R-package/**/*.Rd"
\
"./docs/_build/html/*.html"
\
||
exit
1
fi
.github/workflows/lychee.yml
View file @
91536f2d
...
@@ -11,7 +11,6 @@ env:
...
@@ -11,7 +11,6 @@ env:
COMPILER
:
gcc
COMPILER
:
gcc
OS_NAME
:
'
linux'
OS_NAME
:
'
linux'
TASK
:
'
check-links'
TASK
:
'
check-links'
GITHUB_TOKEN
:
${{ github.token }}
jobs
:
jobs
:
check-links
:
check-links
:
...
@@ -24,9 +23,21 @@ jobs:
...
@@ -24,9 +23,21 @@ jobs:
fetch-depth
:
5
fetch-depth
:
5
persist-credentials
:
false
persist-credentials
:
false
submodules
:
false
submodules
:
false
-
name
:
Setup and run test
s
-
name
:
Build doc
s
run
:
|
run
:
|
export CONDA=${HOME}/miniforge
export CONDA=${HOME}/miniforge
export PATH=${CONDA}/bin:${HOME}/.local/bin:${PATH}
export PATH=${CONDA}/bin:${HOME}/.local/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit 1
$GITHUB_WORKSPACE/.ci/setup.sh || exit 1
$GITHUB_WORKSPACE/.ci/test-docs.sh || exit 1
$GITHUB_WORKSPACE/.ci/build-docs.sh || exit 1
-
name
:
Check links
uses
:
lycheeverse/lychee-action@v2.6.1
with
:
args
:
>-
--config=./docs/.lychee.toml
--
"**/*.rst"
"**/*.md"
"./R-package/**/*.Rd"
"./docs/_build/html/*.html"
fail
:
true
failIfEmpty
:
true
.github/workflows/static_analysis.yml
View file @
91536f2d
...
@@ -58,7 +58,7 @@ jobs:
...
@@ -58,7 +58,7 @@ jobs:
export CONDA=${HOME}/miniforge
export CONDA=${HOME}/miniforge
export PATH=${CONDA}/bin:$HOME/.local/bin:${PATH}
export PATH=${CONDA}/bin:$HOME/.local/bin:${PATH}
$GITHUB_WORKSPACE/.ci/setup.sh || exit 1
$GITHUB_WORKSPACE/.ci/setup.sh || exit 1
$GITHUB_WORKSPACE/.ci/
test
-docs.sh || exit 1
$GITHUB_WORKSPACE/.ci/
build
-docs.sh || exit 1
r-check-docs
:
r-check-docs
:
name
:
r-package-check-docs
name
:
r-package-check-docs
timeout-minutes
:
60
timeout-minutes
:
60
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment