From e5583310cd1aa15e0713e02e3d2238249b3e4ec4 Mon Sep 17 00:00:00 2001 From: Govindas Date: Sat, 22 Jan 2022 12:01:09 +0200 Subject: [PATCH] Oops, my test server wasn't updating files --- generate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate.py b/generate.py index ba7e5d8..dee34dd 100644 --- a/generate.py +++ b/generate.py @@ -23,7 +23,7 @@ def generateNavigationBar(lines): navbar = E for line in lines: split = line.strip().split(";", 1) - navbar.li(HTML("" + split[0])) + navbar = navbar.li(HTML("" + split[0] + "")) if os.path.exists("./navbar"): with open("./navbar", 'r') as navbarfile: @@ -45,9 +45,9 @@ for file in os.listdir("./"): if pagetitle != homepage: foldername = "/" + pagetitle.replace(" ", "-").lower() os.mkdir("./website-output" + foldername) - + print(foldername) with open("./website-output" + foldername + "/index.html", 'w') as newpage: if 'navbar' in globals(): - newpage.write(str(E.ul(navbar))) + newpage.write(str(E.ul(navbar)) + str(doc)) else: newpage.write(str(doc))