summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py10
1 files changed, 9 insertions, 1 deletions
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))