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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy