diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-01-02 23:18:29 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2025-01-02 23:18:29 +0300 |
commit | 83defc2290491208add41e6a3d2e665703d3f530 (patch) | |
tree | 850619fede4266abd89499e3872b2ddfe9172656 | |
parent | 940af50d96e9a7916674d237dec53738ab776103 (diff) |
-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) |