Skip to content

Commit 3bfe966

Browse files
authored
Fix rtd doc download. (dmlc#11771)
1 parent 5e806d1 commit 3bfe966

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)