Skip to content

Commit 982c0f8

Browse files
authored
Fix TypeError in setup_switchers() (#284)
1 parent f30fec8 commit 982c0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_docs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def setup_switchers(script_content: bytes, html_root: Path) -> None:
473473
- Cross-link various versions in a version switcher
474474
"""
475475
switchers_path = html_root / "_static" / "switchers.js"
476-
switchers_path.write_text(script_content, encoding="UTF-8")
476+
switchers_path.write_bytes(script_content)
477477

478478
for file in html_root.glob("**/*.html"):
479479
depth = len(file.relative_to(html_root).parts) - 1

0 commit comments

Comments
 (0)