Skip to content

Commit

Permalink
Use READTHEDOCS_VERSION_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jun 4, 2024
1 parent e6fd3f1 commit 462cb2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,14 @@ def run_doxygen():

def build_jvm_docs():
"""Build docs for the JVM packages"""
git_branch = os.getenv("READTHEDOCS_GIT_IDENTIFIER", default=None)
git_branch = os.getenv("READTHEDOCS_VERSION_NAME", default=None)
print(f"git_branch = {git_branch}")

if git_branch == "latest":
git_branch = "master"
elif git_branch == "stable":
git_branch = f"release_{version}"

def try_fetch_jvm_doc(branch):
"""
Attempt to fetch JVM docs for a given branch.
Expand Down

0 comments on commit 462cb2c

Please sign in to comment.