diff options
-rwxr-xr-x | create_adoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |