Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions build/src/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ def build(local=False):
print("Creating rendering pipeline...")
renderer = get_ext(bib_database, PYGMENT_THEME, md)

print("Rendering chapters...")
for chapter in chapters:
render_chapter(chapter, renderer, template, summary, book_json)

print("Moving favicon.ico...")
shutil.copy(FAVICON_PATH, O_NAME / "favicon.ico")

Expand All @@ -99,6 +95,11 @@ def build(local=False):
(O_NAME / "index.html").write_text(
render_one((CONTENTS_NAME / INDEX_NAME).read_text(), f"{O_NAME}/", 0,
renderer, template, summary, book_json))

print("Rendering chapters...")
for chapter in chapters:
render_chapter(chapter, renderer, template, summary, book_json)

print("Done!")


Expand Down