new_config = get_base_lang_config(lang)
new_config_path: Path = Path(new_path) / mkdocs_name
new_config_path.write_text(
- yaml.dump(new_config, sort_keys=False, width=200), encoding="utf-8"
+ yaml.dump(new_config, sort_keys=False, width=200, allow_unicode=True),
+ encoding="utf-8",
)
new_config_docs_path: Path = new_path / "docs"
new_config_docs_path.mkdir()
lang_config["nav"] = export_lang_nav
build_lang_config_path: Path = build_lang_path / mkdocs_name
build_lang_config_path.write_text(
- yaml.dump(lang_config, sort_keys=False, width=200), encoding="utf-8"
+ yaml.dump(lang_config, sort_keys=False, width=200, allow_unicode=True),
+ encoding="utf-8",
)
current_dir = os.getcwd()
os.chdir(build_lang_path)
languages.append({name: f"/{name}/"})
config["nav"][1] = {"Languages": languages}
config_path.write_text(
- yaml.dump(config, sort_keys=False, width=200), encoding="utf-8"
+ yaml.dump(config, sort_keys=False, width=200, allow_unicode=True),
+ encoding="utf-8",
)