Unverified Commit 336bd6bf authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[docs] fix R documentation builds (fixes #3655) (#3656)

* [docs] fix R documentation builds (fixes #3655)

* use RTD config
parent d1f87352
...@@ -9,3 +9,6 @@ sphinx: ...@@ -9,3 +9,6 @@ sphinx:
builder: html builder: html
configuration: docs/conf.py configuration: docs/conf.py
fail_on_warning: true fail_on_warning: true
submodules:
include: all
recursive: true
...@@ -249,9 +249,9 @@ def generate_r_docs(app): ...@@ -249,9 +249,9 @@ def generate_r_docs(app):
export TAR=/bin/tar export TAR=/bin/tar
cd {0} cd {0}
export R_LIBS="$CONDA_PREFIX/lib/R/library" export R_LIBS="$CONDA_PREFIX/lib/R/library"
Rscript build_r.R Rscript build_r.R || exit -1
cd {1} cd {1}
Rscript -e "roxygen2::roxygenize(load = 'installed')" Rscript -e "roxygen2::roxygenize(load = 'installed')" || exit -1
Rscript -e "pkgdown::build_site( \ Rscript -e "pkgdown::build_site( \
lazy = FALSE \ lazy = FALSE \
, install = FALSE \ , install = FALSE \
...@@ -261,8 +261,8 @@ def generate_r_docs(app): ...@@ -261,8 +261,8 @@ def generate_r_docs(app):
, seed = 42L \ , seed = 42L \
, preview = FALSE \ , preview = FALSE \
, new_process = TRUE \ , new_process = TRUE \
) \ )
" " || exit -1
cd {0} cd {0}
""".format(os.path.join(CURR_PATH, os.path.pardir), os.path.join(CURR_PATH, os.path.pardir, "lightgbm_r")) """.format(os.path.join(CURR_PATH, os.path.pardir), os.path.join(CURR_PATH, os.path.pardir, "lightgbm_r"))
try: try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment