From 55e8861d9c99b6d5f2865a65deb11153c9518541 Mon Sep 17 00:00:00 2001 From: neatc0der <2805028+neatc0der@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:15:18 +0200 Subject: [PATCH 1/3] #46: Fix multiple script downloads --- mkdocs_markmap/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mkdocs_markmap/utils.py b/mkdocs_markmap/utils.py index 8a4c4a4..baa429b 100644 --- a/mkdocs_markmap/utils.py +++ b/mkdocs_markmap/utils.py @@ -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(): From e92194aff5327d0c0a4ecb6e1b19ef0a9b5888b3 Mon Sep 17 00:00:00 2001 From: neatc0der <2805028+neatc0der@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:16:05 +0200 Subject: [PATCH 2/3] Add changelog for v2.4.3 --- changelog/v2.4.3 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/v2.4.3 diff --git a/changelog/v2.4.3 b/changelog/v2.4.3 new file mode 100644 index 0000000..f851cd4 --- /dev/null +++ b/changelog/v2.4.3 @@ -0,0 +1,3 @@ +# v2.4.3 + +* Fix multiple script downloads (see [#46](https://github.com/markmap/mkdocs-markmap/issues/46)) From cf60b5ae5ce184104850ef43eb1a15903ecb9cc0 Mon Sep 17 00:00:00 2001 From: neatc0der <2805028+neatc0der@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:16:24 +0200 Subject: [PATCH 3/3] Bump version to v2.4.3 --- mkdocs_markmap/__meta__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs_markmap/__meta__.py b/mkdocs_markmap/__meta__.py index a75d0ab..db7fb98 100644 --- a/mkdocs_markmap/__meta__.py +++ b/mkdocs_markmap/__meta__.py @@ -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"