document does not need to be global
This commit is contained in:
parent
a5785092c4
commit
1e02f03a0f
@ -25,16 +25,15 @@ def generateNavigationBar(lines):
|
||||
navbar = navbar.li(HTML("<a href='" + link + "'>" + title + "</a>"))
|
||||
|
||||
def generateLines(title, lines):
|
||||
global document
|
||||
title = title.replace(".page", "")
|
||||
document = Document(title, lang="en")
|
||||
|
||||
for line in lines:
|
||||
document.p(line.strip())
|
||||
|
||||
generatePage(title)
|
||||
generatePage(title, document)
|
||||
|
||||
def generatePage(title):
|
||||
def generatePage(title, document):
|
||||
#creates ./website-output/pagetitle/index.html file if it is not homepage
|
||||
foldername = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user