updated gitignore and build.py works to update vault
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user