From 6c8c1447bbf14b37bf4c235cac0c2cf23d33d9b3 Mon Sep 17 00:00:00 2001 From: lucemia Date: Wed, 10 Apr 2024 10:58:18 +0800 Subject: [PATCH] use direct path --- README.md | 4 ++-- scripts/compile-readme.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e74dc7e4..dc21bd8d 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ f -![svg](docs/media/README_files/README_1_0.svg) +![svg](https://raw.githubusercontent.com/livingbio/typed-ffmpeg/main/docs/media/README_files/README_1_0.svg) @@ -125,7 +125,7 @@ f -![svg](docs/media/README_files/README_3_0.svg) +![svg](https://raw.githubusercontent.com/livingbio/typed-ffmpeg/main/docs/media/README_files/README_3_0.svg) diff --git a/scripts/compile-readme.py b/scripts/compile-readme.py index 7bc244f0..8fc9d804 100644 --- a/scripts/compile-readme.py +++ b/scripts/compile-readme.py @@ -5,6 +5,8 @@ def post_process(markdown_file: str, original_folder: str, new_folder: str) -> None: + rel_path = "https://raw.githubusercontent.com/livingbio/typed-ffmpeg/main/" + new_folder + # Move the folder if os.path.exists(original_folder): for filepath in os.listdir(original_folder): @@ -21,7 +23,7 @@ def post_process(markdown_file: str, original_folder: str, new_folder: str) -> N with open(markdown_file, "r") as file: content = file.read() - content = content.replace(original_folder, new_folder) + content = content.replace(original_folder, rel_path) with open(markdown_file, "w") as file: file.write(content)