Skip to content

Commit 9b18bdc

Browse files
authored
Merge pull request #56 from markmap/v2.4.3
V2.4.3
2 parents 85f06ad + cf60b5a commit 9b18bdc

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

changelog/v2.4.3

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# v2.4.3
2+
3+
* Fix multiple script downloads (see [#46](https://github.com/markmap/mkdocs-markmap/issues/46))

mkdocs_markmap/__meta__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PACKAGE_NAME: str = "mkdocs_markmap"
22
PROJECT_NAME: str = PACKAGE_NAME.replace("_", "-")
3-
PROJECT_VERSION: str = "2.4.2"
3+
PROJECT_VERSION: str = "2.4.3"
44

55
OWNER: str = "neatc0der"
66
ORGANISATION: str = "markmap"

mkdocs_markmap/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def download(base_path: Path, url: str, flat: bool = False, force_reload: bool =
2121
sub_path += extname
2222
file_path: Path = base_path / sub_path
2323

24+
if file_path.exists():
25+
return str(sub_path)
2426

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

0 commit comments

Comments
 (0)