Skip to content

Commit

Permalink
doc-sync: strip point release from version before uploading
Browse files Browse the repository at this point in the history
We create subdirectories for each major release, but not for point releases
so strip the suffix if it is present
  • Loading branch information
bluca authored and keszybz committed Sep 10, 2024
1 parent d794c10 commit 59e6059
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/sync-docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ def get_latest_version():
def main(version, directory, www_target):
index_filename = os.path.join(directory, "index.json")
nav_filename = os.path.join(directory, "nav.js")
# The upload directory does not contain point release suffixes
version = re.sub(r"\..+$", "", version)

current_branch = subprocess.check_output(["git", "branch", "--show-current"], text=True).strip()

Expand Down

0 comments on commit 59e6059

Please sign in to comment.