-
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] [R-package] use CRAN-style builds when building pkgdown site #4513
Conversation
@StrikerRUS can you please re-enable my |
Sure, done! Just a note: we need to keep RTD versions clean (test something and then remove dev branch) because we've started to provide versions for previous releases (#4236). Excess branches might confuse users there. |
Thanks! Yep, I understand. As long as I do not have permissions on RTD to do this myself, I'll have to ask you to add and remove a dev branch when I want to test docs. |
I see that the most recent build failed with an error like this.
https://readthedocs.org/projects/lightgbm/builds/14472426/ That seems unrelated to the changes in this PR. I'm going to try pushing an empty commit to re-trigger the build. |
ahhh ok actually, the issue about favicons WAS related to the changes here. I was able to reproduce it locally. The CRAN-style package doesn't contain the contents of That includes the I just pushed 5138946, which I think should fix it. |
Ok yep, that worked! The RTD build is passing (https://readthedocs.org/projects/lightgbm/builds/14472810/), and the R documentation looks correct to me (https://lightgbm.readthedocs.io/en/docs-jlamb/R/index.html). I believe this is ready for review. |
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.
LGTM!
I like the advantages you've listed above 🙂 .
As long as I do not have permissions on RTD to do this myself, I'll have to ask you to add and remove a dev branch when I want to test docs.
I can remove a dev branch by default after merging a PR associated with that branch.
This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this. |
This PR proposes using CRAN-style builds of the R package on readthedocs (RTD).
Advantages of this approach over CMake builds:
cmake
does not need to be installedconda
R dependencies for RTD builds{pkgdown}
site (contributes to [R-package] Rewrite R demos, replace with vignettes #1944)