Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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