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
71bd9ed5
"python-package/vscode:/vscode.git/clone" did not exist on "5631366175f68a28bd174982cca16975f7fb48af"
Commit
71bd9ed5
authored
Nov 11, 2018
by
Nikita Titov
Committed by
Qiwei Ye
Nov 11, 2018
Browse files
use latest Sphinx with rstcheck (#1836)
parent
30bc083c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
.ci/test.sh
.ci/test.sh
+1
-3
No files found.
.ci/test.sh
View file @
71bd9ed5
...
@@ -17,8 +17,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
...
@@ -17,8 +17,7 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
if
[[
$PYTHON_VERSION
==
"2.7"
]]
;
then
if
[[
$PYTHON_VERSION
==
"2.7"
]]
;
then
conda
-y
-n
$CONDA_ENV
mock
conda
-y
-n
$CONDA_ENV
mock
fi
fi
# sphinx >=1.8 is incompatible with rstcheck
conda
install
-y
-n
$CONDA_ENV
sphinx
"sphinx_rtd_theme>=0.3"
conda
install
-y
-n
$CONDA_ENV
"sphinx<1.8"
"sphinx_rtd_theme>=0.3"
pip
install
--user
rstcheck
pip
install
--user
rstcheck
# check reStructuredText formatting
# check reStructuredText formatting
cd
$BUILD_DIRECTORY
/python-package
cd
$BUILD_DIRECTORY
/python-package
...
@@ -26,7 +25,6 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
...
@@ -26,7 +25,6 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
cd
$BUILD_DIRECTORY
/docs
cd
$BUILD_DIRECTORY
/docs
rstcheck
--report
warning
--ignore-directives
=
autoclass,autofunction
`
find
.
-type
f
-name
"*.rst"
`
||
exit
-1
rstcheck
--report
warning
--ignore-directives
=
autoclass,autofunction
`
find
.
-type
f
-name
"*.rst"
`
||
exit
-1
# build docs and check them for broken links
# build docs and check them for broken links
conda update
-y
-n
$CONDA_ENV
sphinx
make html
||
exit
-1
make html
||
exit
-1
find ./_build/html/
-type
f
-name
'*.html'
-exec
\
find ./_build/html/
-type
f
-name
'*.html'
-exec
\
sed
-i
'.bak'
-e
's;\(\.\/[^.]*\.\)rst\([^[:space:]]*\);\1html\2;g'
{}
\;
# emulate js function
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