Co-authored-by: Jiaming Yuan <jm.yuan@outlook.com>
This commit is contained in:
parent
124bc57a6e
commit
c519f5690e
17
doc/conf.py
17
doc/conf.py
@ -26,6 +26,14 @@ PROJECT_ROOT = os.path.normpath(os.path.join(CURR_PATH, os.path.pardir))
|
|||||||
TMP_DIR = os.path.join(CURR_PATH, "tmp")
|
TMP_DIR = os.path.join(CURR_PATH, "tmp")
|
||||||
DOX_DIR = "doxygen"
|
DOX_DIR = "doxygen"
|
||||||
|
|
||||||
|
os.environ["XGBOOST_BUILD_DOC"] = "1"
|
||||||
|
|
||||||
|
# Version information.
|
||||||
|
import xgboost # NOQA
|
||||||
|
|
||||||
|
version = xgboost.__version__
|
||||||
|
release = xgboost.__version__
|
||||||
|
|
||||||
|
|
||||||
def run_doxygen():
|
def run_doxygen():
|
||||||
"""Run the doxygen make command in the designated folder."""
|
"""Run the doxygen make command in the designated folder."""
|
||||||
@ -69,7 +77,7 @@ def build_jvm_docs():
|
|||||||
elif git_branch == "latest":
|
elif git_branch == "latest":
|
||||||
git_branch = "master"
|
git_branch = "master"
|
||||||
elif git_branch == "stable":
|
elif git_branch == "stable":
|
||||||
git_branch = f"release_{version}"
|
git_branch = f"release_{xgboost.__version__}"
|
||||||
print(f"git_branch = {git_branch}")
|
print(f"git_branch = {git_branch}")
|
||||||
|
|
||||||
def try_fetch_jvm_doc(branch):
|
def try_fetch_jvm_doc(branch):
|
||||||
@ -134,13 +142,6 @@ author = "%s developers" % project
|
|||||||
copyright = "2022, %s" % author
|
copyright = "2022, %s" % author
|
||||||
github_doc_root = "https://github.com/dmlc/xgboost/tree/master/doc/"
|
github_doc_root = "https://github.com/dmlc/xgboost/tree/master/doc/"
|
||||||
|
|
||||||
os.environ["XGBOOST_BUILD_DOC"] = "1"
|
|
||||||
# Version information.
|
|
||||||
import xgboost # NOQA
|
|
||||||
|
|
||||||
version = xgboost.__version__
|
|
||||||
release = xgboost.__version__
|
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones
|
||||||
extensions = [
|
extensions = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user