Skip to content

Commit

Permalink
fix doc generator issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
noman404 committed Feb 5, 2025
1 parent 74656ee commit b8fa10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/add_plotly_to_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
book_folder = Path(args.book_path)

for html_file in book_folder.glob("**/*.html"):
with open(html_file, "r") as f:
with open(html_file, "r", encoding="utf-8") as f:
html = f.read()

# Add the script tag to the start of the <head> tag.
Expand All @@ -23,5 +23,5 @@
'<head><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>',
)

with open(html_file, "w") as f:
with open(html_file, "w", encoding="utf-8") as f:
f.write(html)

0 comments on commit b8fa10f

Please sign in to comment.