This commit is contained in:
notplants 2024-02-21 12:49:11 -06:00
parent 52e0b49074
commit 95cadb57e8
1 changed files with 0 additions and 13 deletions

13
main.py
View File

@ -5,21 +5,8 @@ import jinja2
import yaml
# LIST_URL = "https://bookwyrm.social/list/2458/s/notplants-2023"
# LIST_URL = "https://bookwyrm.social/list/2404/s/2024"
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
# output dirs
OUTPUT_DIR = os.path.join(PROJECT_PATH, 'dist')
if not os.path.exists(OUTPUT_DIR):
os.makedirs(OUTPUT_DIR)
# input static folder
STATIC_DIR = os.path.join(PROJECT_PATH, 'static')
if not os.path.exists(STATIC_DIR):
os.makedirs(STATIC_DIR)
def build_site(output_dir, images_dir, relative_template_path, template_vars):