From c23d1bb8c2c82be6f6b20358f6abe2501342822e Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Sun, 30 Apr 2017 11:08:58 +0200 Subject: [PATCH] added id to story-page --- bin/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/build.py b/bin/build.py index 7f8a561..8186d05 100755 --- a/bin/build.py +++ b/bin/build.py @@ -98,7 +98,8 @@ def generate_html(book, toc): # os.mkdir(book_build_d_pages) for p in toc: - # print(toc[p]['file']) + print(toc[p]['file']) + pagename = toc[p]['file'].replace('.md', '') # files in_f = os.path.join(_BOOKS_SRC, toc[p]['file']) @@ -121,7 +122,7 @@ def generate_html(book, toc): # outputfile=out_f) # append html story page to template_dom - story_page = BeautifulSoup('
') + story_page = BeautifulSoup('
') story_page.div.append(BeautifulSoup(output)) story_dom.append(story_page)