Repository navigation
[ci] [R-package] fix docs build, test pkgdown build in CI - #7268
Conversation
| @@ -1,4 +1,5 @@ | |||
| template: | |||
| bootstrap: 5 | |||
There was a problem hiding this comment.
Fixes this long-standing warning in {pkgdown} builds.
β Bootstrap 3 is deprecated; please switch to Bootstrap 5.
βΉ Learn more at
<https://www.tidyverse.org/blog/2021/12/pkgdown-2-0-0/#bootstrap-5>.
| SystemRequirements: | ||
| C++17 | ||
| RoxygenNote: 7.3.3 | ||
| Config/roxygen2/version: 8.0.0 |
There was a problem hiding this comment.
This was auto-generated by roxygen2::roxygenize().
It's valid... there are many of these on CRAN: https://github.com/search?q=org%3Acran%20%22Config%2Froxygen2%2Fversion%22&type=code
| os: "ubuntu-24.04" | ||
| tools: | ||
| python: "mambaforge-23.11" | ||
| python: "miniforge3-latest" |
There was a problem hiding this comment.
mambaforge-* has been deprecated on readthedocs since July 2024: readthedocs/readthedocs.org#11690 (comment)
As a result of the libmamba solver becoming the default in conda.
Proposing:
- switching to
miniforge - using the
*-latestone so we don't need to update as readthedocs supports new versions
| - title: Deprecated | ||
| desc: Functionality that will be removed in the future | ||
| contents: | ||
| - '`lgb.interprete`' |
There was a problem hiding this comment.
This fixes the broken builds.
| scikit-learn>=1.9.dev0 | ||
|
|
||
| # TODO: use 'scikit-learn' nightlies again when https://github.com/scikit-learn/scikit-learn/issues/33993 is resolved | ||
| scikit-learn==1.8.* |
There was a problem hiding this comment.
For #7269
All CI-blocking issues need to be resolved together in the same PR if we want to merge this normally without admin overrides.
| + " The Dask client used by this class will not be saved if the model object is pickled.\n" | ||
| + "**kwargs\n" | ||
| + _after_kwargs | ||
| ) |
There was a problem hiding this comment.
Builds were failing with new errors from docutils:
dask.py:docstring of lightgbm.dask.DaskLGBMClassifier.__init__:77: WARNING: Inline strong start-string without end-string. [docutils]
dask.py:docstring of lightgbm.dask.DaskLGBMClassifier.__init__:78: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils]
dask.py:docstring of lightgbm.dask.DaskLGBMRanker.__init__:77: WARNING: Inline strong start-string without end-string. [docutils]
dask.py:docstring of lightgbm.dask.DaskLGBMRanker.__init__:78: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils]
dask.py:docstring of lightgbm.dask.DaskLGBMRegressor.__init__:77: WARNING: Inline strong start-string without end-string. [docutils]
dask.py:docstring of lightgbm.dask.DaskLGBMRegressor.__init__:78: WARNING: Definition list ends without a blank line; unexpected unindent. [docutils]
example: https://app.readthedocs.org/projects/lightgbm/builds/32648001/
Looks like this is catching a legitimate issue that's been in the project for a while!
import lightgbm as lgb
print(lgb.DaskLGBMRanker.__init__.__doc__)Look at this incorrect indentation:
As far as I can tell this doesn't affect docs like https://lightgbm.readthedocs.io/en/fix-docs-build/pythonapi/lightgbm.DaskLGBMClassifier.html in a noticeable way, but still worth fixing.
Co-authored-by: James Lamb <jaylamb20@gmail.com>
|
@mayer79 could you help with a review on this one? I'd like to get the docs builds in this repo working again (and this will ensure we catch errors like this in CI in the future). |
Fixes #7267
Something at the intersection of
{roxygen2}8.0.0 (new a few days ago) and changes in #7148 have led to{pkgdown}site build failing like this:This fixes that and ensures that build is done in PR CI, so we can catch such issues earlier.
Other small related changes:
.ci/build-docs.Rto avoid duplicating thepkgdown::build_site()call in multiple places{roxygen2}8.0.0Notes for Reviewers
How I tested this
Enabled this branch on readthedocs and visually inspected the docs.