From 7eeeb7d3c86b1e6269f81f9bc13de8874a140bc8 Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 22 Jun 2025 15:56:04 +0200 Subject: Remove input/output, create as needed --- main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main.py') diff --git a/main.py b/main.py index 7dcee82..8084cfb 100644 --- a/main.py +++ b/main.py @@ -32,14 +32,22 @@ def get_html(PathList): HtmlList.append(path) return HtmlList +if not os.path.isdir("input"): + print("Nothing to do") + exit(1) PathList = get_paths(dir) HtmlList = get_html(PathList) - domain = "aaron.place" #Fill in your domain or leave untouched if you dont have one!!! print(wipe_old()) + +if not os.path.isdir("output/markdown"): + os.makedirs("output/markdown") +if not os.path.isdir("output/gemini"): + os.makedirs("output/gemini") + print(convert_html_to_md(HtmlList)) print(convert_md_to_gemini()) print(convert_links_to_gemini(domain)) -- cgit v1.2.3