From 83defc2290491208add41e6a3d2e665703d3f530 Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Thu, 2 Jan 2025 23:18:29 +0300 Subject: Auto-commit 2025-01-02 --- create_adoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_adoc.py b/create_adoc.py index e25da7a..c5af711 100755 --- a/create_adoc.py +++ b/create_adoc.py @@ -7,7 +7,7 @@ target_dir = Path("./public/text") for md_path in source_dir.rglob("*.md"): relative_path = md_path.relative_to(source_dir) - target_path = str(target_dir / relative_path.with_suffix(".txt")).replace("/index", "") + target_path = str(target_dir / relative_path.with_suffix(".txt")).replace("/index", "").replace("_index", "index") print(target_path) # Создать все необходимые каталоги Path(target_path).parent.mkdir(parents=True, exist_ok=True) -- cgit v1.2.3