diff options
| author | uvok | 2025-06-22 15:56:04 +0200 |
|---|---|---|
| committer | uvok | 2025-06-22 15:56:04 +0200 |
| commit | 7eeeb7d3c86b1e6269f81f9bc13de8874a140bc8 (patch) | |
| tree | a16d751be2c12edb4049a0d5be01d45b0c538949 | |
| parent | fff0b65d09168b75a52550879a38a88024256c91 (diff) | |
Remove input/output, create as needed
| -rw-r--r-- | input/placeholder.txt | 1 | ||||
| -rw-r--r-- | main.py | 10 | ||||
| -rw-r--r-- | output/gemini/placeholder.txt | 1 | ||||
| -rw-r--r-- | output/markdown/placeholder.txt | 1 |
4 files changed, 9 insertions, 4 deletions
diff --git a/input/placeholder.txt b/input/placeholder.txt deleted file mode 100644 index 8d1c8b6..0000000 --- a/input/placeholder.txt +++ /dev/null @@ -1 +0,0 @@ - @@ -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)) diff --git a/output/gemini/placeholder.txt b/output/gemini/placeholder.txt deleted file mode 100644 index 8d1c8b6..0000000 --- a/output/gemini/placeholder.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/output/markdown/placeholder.txt b/output/markdown/placeholder.txt deleted file mode 100644 index 8d1c8b6..0000000 --- a/output/markdown/placeholder.txt +++ /dev/null @@ -1 +0,0 @@ - |
