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
8d7b6f92
"nndet/vscode:/vscode.git/clone" did not exist on "2163757d78d8560d5f2158e6115f629b07670dc5"
Unverified
Commit
8d7b6f92
authored
Aug 20, 2025
by
James Lamb
Committed by
GitHub
Aug 20, 2025
Browse files
[docs] [ci] automatically re-generate parameter docs via pre-commit (#7001)
parent
97ff7087
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
.ci/test.sh
.ci/test.sh
+0
-6
.pre-commit-config.yaml
.pre-commit-config.yaml
+9
-0
No files found.
.ci/test.sh
View file @
8d7b6f92
...
...
@@ -139,12 +139,6 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then
linkchecker
--config
=
./docs/.linkcheckerrc ./docs/_build/html/
*
.html
||
exit
1
exit
0
fi
# check the consistency of parameters' descriptions and other stuff
cp
./docs/Parameters.rst ./docs/Parameters-backup.rst
cp
./src/io/config_auto.cpp ./src/io/config_auto-backup.cpp
python ./.ci/parameter-generator.py
||
exit
1
diff ./docs/Parameters-backup.rst ./docs/Parameters.rst
||
exit
1
diff ./src/io/config_auto-backup.cpp ./src/io/config_auto.cpp
||
exit
1
exit
0
fi
...
...
.pre-commit-config.yaml
View file @
8d7b6f92
...
...
@@ -27,6 +27,15 @@ repos:
hooks
:
-
id
:
yamllint
args
:
[
"
--strict"
]
-
repo
:
local
hooks
:
-
id
:
regenerate-parameters
name
:
regenerate-parameters
entry
:
python
args
:
-
./.ci/parameter-generator.py
language
:
python
pass_filenames
:
false
-
repo
:
https://github.com/rstcheck/rstcheck
rev
:
v6.2.5
hooks
:
...
...
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