fix windows build

Signed-off-by: HiFiPhile <admin@hifiphile.com>
This commit is contained in:
HiFiPhile
2026-03-14 09:19:24 +01:00
parent 925bf6ba30
commit b4e92f63c6

View File

@ -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()