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
91276151
"examples/vscode:/vscode.git/clone" did not exist on "16c551c13d49c03fd4d871418257b1d89569d95b"
Commit
91276151
authored
Oct 03, 2018
by
Nikita Titov
Committed by
Guolin Ke
Oct 03, 2018
Browse files
build docs with latest sphinx (#1729)
parent
757586b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
.ci/test.sh
.ci/test.sh
+2
-0
No files found.
.ci/test.sh
View file @
91276151
...
...
@@ -19,6 +19,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
if
[[
$PYTHON_VERSION
==
"2.7"
]]
;
then
conda
-y
-n
$CONDA_ENV
mock
fi
# sphinx >=1.8 is incompatible with rstcheck
conda
install
-y
-n
$CONDA_ENV
"sphinx<1.8"
"sphinx_rtd_theme>=0.3"
# html5validator
pip
install
rstcheck
# check reStructuredText formatting
...
...
@@ -27,6 +28,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
cd
$BUILD_DIRECTORY
/docs
rstcheck
--report
warning
--ignore-directives
=
autoclass,autofunction
`
find
.
-type
f
-name
"*.rst"
`
||
exit
-1
# build docs and check them for broken links
conda update
-y
-n
$CONDA_ENV
sphinx
make html
||
exit
-1
find ./_build/html/
-type
f
-name
'*.html'
-exec
\
sed
-i
'.bak'
-e
's;\(\.\/[^.]*\.\)rst\([^[:space:]]*\);\1html\2;g'
{}
\;
# emulate js function
...
...
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