updated gitignore and build.py works to update vault

This commit is contained in:
venus
2026-03-04 23:10:09 -06:00
parent f22fb410ab
commit 35f0edbc83
4 changed files with 14 additions and 13 deletions

View File

@@ -13,13 +13,6 @@ CONTENT_DIR = Path("/content")
VAULT_DIR = "/vault"
build.obsidian_vault(VAULT_DIR)
# Find obsidian vault path or clone it
# if not os.path.exists(VAULT_DIR):
# # print(os.getenv("OBSIDIAN_VAULT_URL"))
# build.clone_gittea_repo(os.getenv("OBSIDIAN_VAULT_URL"), VAULT_DIR, os.getenv("OBSIDIAN_VALUT_TOKEN"))
# else:
# print("vault already exists")
@app.route("/")
def index():
@@ -31,4 +24,4 @@ def index():
@app.route ("/<filename>") # renders a filename if not otherwise specified
def render_post(filename):
return build.render_file(filename, CONTENT_DIR)
return build.html_file(filename, CONTENT_DIR)