File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ submodules:
12
12
build :
13
13
os : ubuntu-22.04
14
14
tools :
15
- python : " 3.8 "
15
+ python : " 3.10 "
16
16
apt_packages :
17
17
- graphviz
18
18
- cmake
Original file line number Diff line number Diff line change 26
26
TMP_DIR = os .path .join (CURR_PATH , "tmp" )
27
27
DOX_DIR = "doxygen"
28
28
29
+ os .environ ["XGBOOST_BUILD_DOC" ] = "1"
30
+
31
+ # Version information.
32
+ import xgboost # NOQA
33
+
34
+ version = xgboost .__version__
35
+ release = xgboost .__version__
36
+
29
37
30
38
def run_doxygen ():
31
39
"""Run the doxygen make command in the designated folder."""
@@ -69,7 +77,7 @@ def build_jvm_docs():
69
77
elif git_branch == "latest" :
70
78
git_branch = "master"
71
79
elif git_branch == "stable" :
72
- git_branch = f"release_{ version } "
80
+ git_branch = f"release_{ xgboost . __version__ } "
73
81
print (f"git_branch = { git_branch } " )
74
82
75
83
def try_fetch_jvm_doc (branch ):
@@ -134,13 +142,6 @@ def is_readthedocs_build():
134
142
copyright = "2022, %s" % author
135
143
github_doc_root = "https://github.com/dmlc/xgboost/tree/master/doc/"
136
144
137
- os .environ ["XGBOOST_BUILD_DOC" ] = "1"
138
- # Version information.
139
- import xgboost # NOQA
140
-
141
- version = xgboost .__version__
142
- release = xgboost .__version__
143
-
144
145
# Add any Sphinx extension module names here, as strings. They can be
145
146
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones
146
147
extensions = [
You can’t perform that action at this time.
0 commit comments