Skip to content

Commit

Permalink
Merge pull request #56 from markmap/v2.4.3
Browse files Browse the repository at this point in the history
V2.4.3
  • Loading branch information
neatc0der authored Oct 5, 2023
2 parents 85f06ad + cf60b5a commit 9b18bdc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/v2.4.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v2.4.3

* Fix multiple script downloads (see [#46](https://github.com/markmap/mkdocs-markmap/issues/46))
2 changes: 1 addition & 1 deletion mkdocs_markmap/__meta__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PACKAGE_NAME: str = "mkdocs_markmap"
PROJECT_NAME: str = PACKAGE_NAME.replace("_", "-")
PROJECT_VERSION: str = "2.4.2"
PROJECT_VERSION: str = "2.4.3"

OWNER: str = "neatc0der"
ORGANISATION: str = "markmap"
Expand Down
2 changes: 2 additions & 0 deletions mkdocs_markmap/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def download(base_path: Path, url: str, flat: bool = False, force_reload: bool =
sub_path += extname
file_path: Path = base_path / sub_path

if file_path.exists():
return str(sub_path)

file_path.parent.mkdir(parents=True, exist_ok=True)
if force_reload or not file_path.exists():
Expand Down

0 comments on commit 9b18bdc

Please sign in to comment.