Skip to content

Commit

Permalink
copy pkgdown config
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Aug 14, 2021
1 parent 906c05c commit 5138946
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ def generate_r_docs(app):
export R_LIBS="$CONDA_PREFIX/lib/R/library"
sh build-cran-package.sh || exit -1
R CMD INSTALL --with-keep.source lightgbm_*.tar.gz || exit -1
cp -R \
{CURR_PATH.parent / "R-package" / "pkgdown"} \
{CURR_PATH.parent / "lightgbm_r" / "pkgdown"}
cd {CURR_PATH.parent / "lightgbm_r"}
Rscript -e "roxygen2::roxygenize(load = 'installed')" || exit -1
Rscript -e "pkgdown::build_site( \
Expand All @@ -278,7 +281,7 @@ def generate_r_docs(app):
, run_dont_run = TRUE \
, seed = 42L \
, preview = FALSE \
, new_process = FALSE \
, new_process = TRUE \
)
" || exit -1
cd {CURR_PATH.parent}
Expand Down

0 comments on commit 5138946

Please sign in to comment.