updated index

This commit is contained in:
venus
2026-03-11 18:24:04 -05:00
parent c03c37f691
commit bc00607685
3 changed files with 2 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ build.public_vault(PRIVATE_VAULT_DIR, PUBLIC_VAULT_DIR) # initialize the public
def index():
md_content = "# Welcome to my blog!\nThis is rendered from **Markdown**.\n##[test](http://localhost/test)"
html_content = markdown.markdown(md_content)
return html_content
return build.html_file("index.md", PUBLIC_VAULT_DIR)
@app.route("/api/vault-update", methods=['POST', 'GET']) #webhook for vault updated
def update_vault():
# TODO SECURE THIS WITH SECRETTTTT or auth header

View File

@@ -45,6 +45,7 @@ def obsidian_vault(dest = "/vault"): # makes sure there is a vault in dest
return 1
def public_vault(privateVault = "/vault", dest = "/content"): # build the public vault in dest from an obsidian repo in src
#TODO delete old documents
vault = Vault(privateVault)
if not(vault):
print("could not find vault")