Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit ee1fc78

Browse files
authored
Fix sklearn docs throwing an error during build (#214)
1 parent 356b092 commit ee1fc78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xgboost_ray/sklearn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ def _treat_estimator_doc(doc: str) -> str:
214214
"""Helper function to make nececssary changes in estimator docstrings"""
215215
doc = doc.replace(*_N_JOBS_DOC_REPLACE).replace(
216216
"scikit-learn API for XGBoost",
217-
"scikit-learn API for Ray-distributed XGBoost")
217+
"scikit-learn API for Ray-distributed XGBoost").replace(
218+
":doc:`tree method\n </treemethod>`", "tree method")
218219
return doc
219220

220221

0 commit comments

Comments
 (0)