From 5a71f9f30645cbd72e8c209ecdcaaf0a2671f764 Mon Sep 17 00:00:00 2001 From: octospacc Date: Sun, 22 May 2022 23:19:02 +0200 Subject: [PATCH] Switch to
  • for right section list --- Source/Build.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Build.py b/Source/Build.py index 14928b5..8cd9462 100755 --- a/Source/Build.py +++ b/Source/Build.py @@ -49,17 +49,16 @@ def GetTitleIdLine(Line, Title): NewLine += Line[:Index] NewLine += "{}(id='{}')".format(Line[Index:Index+2], Title) NewLine += Line[Index+2:] - print(NewLine) return NewLine def FormatTitles(Titles): MDTitles = '' for t in Titles: n = t.split(' ')[0].count('#') - Heading = '\-'*n + ' ' + Heading = '- ' * n Title = t.lstrip('#') Title = '[{}](#{})'.format(Title, DashifyStr(Title)) - MDTitles += Heading + Title + ' \n' + MDTitles += Heading + Title + '\n' return Markdown().convert(MDTitles) def LoadFromDir(Dir): @@ -116,7 +115,6 @@ def PreProcessor(p): Heading = ls.split(' ')[0].count('#') if Heading > 0: Titles += [ls] - print(Content) return Content, Titles, Meta def PugCompileList(Pages): @@ -152,7 +150,6 @@ def MakeSite(Templates, Parts): for File in Path('Pages').rglob('*.pug'): File = str(File)[len('Pages/'):] Content, Titles, Meta = PreProcessor('Pages/{}'.format(File)) - print(Content) Pages += [[File, Content, Titles, Meta]] PugCompileList(Pages) for File, Content, Titles, Meta in Pages: