Skip to content

Commit

Permalink
[docs] fix R documentation builds (fixes #3655) (#3656)
Browse files Browse the repository at this point in the history
* [docs] fix R documentation builds (fixes #3655)

* use RTD config
  • Loading branch information
jameslamb authored Dec 18, 2020
1 parent d1f8735 commit 336bd6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true
submodules:
include: all
recursive: true
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ def generate_r_docs(app):
export TAR=/bin/tar
cd {0}
export R_LIBS="$CONDA_PREFIX/lib/R/library"
Rscript build_r.R
Rscript build_r.R || exit -1
cd {1}
Rscript -e "roxygen2::roxygenize(load = 'installed')"
Rscript -e "roxygen2::roxygenize(load = 'installed')" || exit -1
Rscript -e "pkgdown::build_site( \
lazy = FALSE \
, install = FALSE \
Expand All @@ -261,8 +261,8 @@ def generate_r_docs(app):
, seed = 42L \
, preview = FALSE \
, new_process = TRUE \
) \
"
)
" || exit -1
cd {0}
""".format(os.path.join(CURR_PATH, os.path.pardir), os.path.join(CURR_PATH, os.path.pardir, "lightgbm_r"))
try:
Expand Down

0 comments on commit 336bd6b

Please sign in to comment.