Skip to content

Commit

Permalink
vig.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jan 16, 2025
1 parent 7904c36 commit 0d627b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def get_branch() -> str:
# sphinx configuration, which somehow makes sphinx to copy the extracted html files to
# the build directory.


def build_jvm_docs() -> None:
"""Build docs for the JVM packages"""
git_branch = get_branch()
Expand Down Expand Up @@ -145,6 +146,13 @@ def try_fetch_r_doc(branch: str) -> bool:

with tarfile.open(filename, "r:bz2") as t:
t.extractall(r_doc_dir)

for root, subdir, files in os.walk(os.path.join(r_doc_dir, "doc", "R-package")):
for f in files:
assert f.endswith(".md")
src = os.path.join(root, f)
dst = os.path.join(PROJECT_ROOT, "doc", "R-package", f)
shutil.move(src, dst)
return True
except HTTPError:
print(f"R doc not found at {url}. Falling back to the master branch.")
Expand Down
1 change: 1 addition & 0 deletions doc/jvm/javadocs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
:orphan:

==================
XGBoost4J Java API
==================

0 comments on commit 0d627b6

Please sign in to comment.