Skip to content

Commit

Permalink
Merge pull request #43 from Cannon07/book_tutorial_bug
Browse files Browse the repository at this point in the history
Fixed 'Loading MathAjax' at the end of each tutorial in book
  • Loading branch information
rbharath authored May 29, 2024
2 parents ebf7b5d + 4580318 commit 8b51a78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-website/utils/tutorials/build_pdf_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def html_to_pdf(data_path=DATA_PATH, info_path=INFO_PATH, pdf_path=PDF_PATH):
signal.alarm(60)
try:
print(i, j)
pdfkit.from_file(data_path + j.strip()[:-5] + "html", pdf_path + j.strip()[:-5] + "pdf")
pdfkit.from_file(data_path + j.strip()[:-5] + "html", pdf_path + j.strip()[:-5] + "pdf", options={'javascript-delay':'5000'})
print("Conversion Successful")
except Exception as e:
print("Exception occured: {}".format(e))
Expand Down

0 comments on commit 8b51a78

Please sign in to comment.