summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authoruvok2025-06-22 15:56:04 +0200
committeruvok2025-06-22 15:56:04 +0200
commit7eeeb7d3c86b1e6269f81f9bc13de8874a140bc8 (patch)
treea16d751be2c12edb4049a0d5be01d45b0c538949 /main.py
parentfff0b65d09168b75a52550879a38a88024256c91 (diff)
Remove input/output, create as needed
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))