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 /main.py | |
| parent | fff0b65d09168b75a52550879a38a88024256c91 (diff) | |
Remove input/output, create as needed
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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)) |
