-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,8 +248,9 @@ def generate_r_docs(app): | |
source /home/docs/.conda/bin/activate r_env | ||
export TAR=/bin/tar | ||
cd {0} | ||
git submodule update --init --recursive | ||
export R_LIBS="$CONDA_PREFIX/lib/R/library" | ||
Rscript build_r.R | ||
Rscript build_r.R || exit 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use Shouldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah you're right |
||
cd {1} | ||
Rscript -e "roxygen2::roxygenize(load = 'installed')" | ||
Rscript -e "pkgdown::build_site( \ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! I think it will be better to use config file for such things.
https://docs.readthedocs.io/en/stable/config-file/v2.html#submodules
Could you please try include the following lines
into
https://github.com/microsoft/LightGBM/blob/master/.readthedocs.yml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P.S. I've enabled RTD builds for the
docs/jlamb
branch and will keep it turned on as you'd asked.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, I can do that. And thanks for keeping the branch up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will auto-disable RTD builds! 🤣