Skip to content

Commit 34c809a

Browse files
authored
Fix RTD document download. (#11772)
1 parent 3868b5f commit 34c809a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def is_id():
8484
elif branch.startswith("release_"):
8585
pass # release branch, like: release_2.1.0
8686
elif branch == "stable":
87-
branch = f"release_{xgboost.__version__}"
87+
# Avoid patch release branch.
88+
v = xgboost.__version__.split(".")
89+
branch = f"release_{v[0]}.{v[1]}.0"
8890
elif is_id():
8991
# Likely PR branch
9092
branch = f"PR-{branch}"

0 commit comments

Comments
 (0)