summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-03-14 09:19:24 +0100
committerHiFiPhile <[email protected]>2026-03-14 09:19:24 +0100
commitb4e92f63c6b653101320cbb9e8ca3f76fbc81509 (patch)
tree4793327d754b0385a31accb5f649e3459bf14b30
parent925bf6ba30d3473f5eeb6610f47986ac2510d64b (diff)
fix windows build
Signed-off-by: HiFiPhile <[email protected]>
-rwxr-xr-xdocs/conf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index cd0338413..9e9784fb7 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -52,11 +52,11 @@ def preprocess_readme():
src = Path(__file__).parent.parent / "README.rst"
tgt = Path(__file__).parent.parent / "README_processed.rst"
if src.exists():
- content = src.read_text()
+ content = src.read_text(encoding='utf-8')
content = re.sub(r"docs/", r"", content)
content = re.sub(r"\.rst\b", r".html", content)
if not content.endswith("\n"):
content += "\n"
- tgt.write_text(content)
+ tgt.write_text(content, encoding='utf-8')
preprocess_readme()