|
@@ -96,6 +96,7 @@ def generate_html(book, toc):
|
|
|
# book_build_d_pages = os.path.join(_BUILD_d,'pages')
|
|
|
# os.mkdir(book_build_d_pages)
|
|
|
|
|
|
+ pi = 0
|
|
|
for p in toc:
|
|
|
print(toc[p]['file'])
|
|
|
pagename = toc[p]['file'].replace('.md', '')
|
|
@@ -125,7 +126,7 @@ def generate_html(book, toc):
|
|
|
|
|
|
|
|
|
# append html story page to template_dom
|
|
|
- story_page = BeautifulSoup('<div class="story-page" id="'+pagename+'"></div>', 'html.parser')
|
|
|
+ story_page = BeautifulSoup('<div class="story-page" id="story-page-'+str(pi)+'"></div>', 'html.parser')
|
|
|
story_page.div.append(output_dom)
|
|
|
story_dom.append(story_page)
|
|
|
|
|
@@ -148,6 +149,7 @@ def generate_html(book, toc):
|
|
|
|
|
|
shutil.copyfile(src_img, dest_img)
|
|
|
|
|
|
+ pi = pi+1
|
|
|
|
|
|
# create main html file from filled template html dom
|
|
|
book_html_f = os.path.join(_BUILD_d,'stories.html')
|