Skip to content

Commit cfc2595

Browse files
committed
fix(hooks): Fixed docs hooks for cookiecutter projects.
1 parent dfbb7ba commit cfc2595

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

changelogs/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Changelog:
33
# --------------------------------------------------
44

5+
## [unreleased]
6+
7+
### ⚙️ Miscellaneous
8+
9+
- *(version)* Version bump to 1.8!
510
## [0.1.7] - 2025-12-23
611

712
### ⚙️ Miscellaneous

changelogs/releases/v0.1.8.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22
# Changelog:
33
# --------------------------------------------------
44

5-
## [0.1.8] - 2025-12-23
5+
## [0.1.8] - 2025-12-27
6+
7+
### ⚙️ Miscellaneous
8+
9+
- *(version)* Version bump to 1.8!

src/nutrimatic/hooks/post_gen_logic/docs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def generate_docs_templates(context: dict[str, Any]) -> None:
7575
extra_ctx = cfg["extra_ctx"]
7676

7777
logger.info(f"📦 Generating {name} docs from {repo}{target}")
78-
7978
try:
8079
# Bake template into temp directory
8180
cookiecutter(
@@ -94,7 +93,7 @@ def generate_docs_templates(context: dict[str, Any]) -> None:
9493
generated_dir = subdirs[0]
9594

9695
if target.exists():
97-
shutil.rmtree(target)
96+
continue
9897

9998
shutil.move(generated_dir, target)
10099

0 commit comments

Comments
 (0)