From 586edb5a8e373e3397cbf9ac45335a11bd38bf27 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 30 Jul 2022 13:41:28 +0800 Subject: [PATCH 1/2] Specify book language html lang=en is currently set, switch it to html lang=zh so system fonts can be used when specified. --- book.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/book.toml b/book.toml index 6c484e5..dfb4d72 100644 --- a/book.toml +++ b/book.toml @@ -2,6 +2,7 @@ title = "Rust 程序设计语言 简体中文版" authors = ["Steve Klabnik 和 Carol Nichols,以及来自 Rust 社区的贡献(Rust 中文社区翻译)"] description = "Rust 程序设计语言 简体中文版" +language = "zh" [output.html] additional-css = ["ferris.css", "theme/2018-edition.css"] From 13d011b398bd4c1c22c7df542692b40769495b40 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sun, 31 Jul 2022 17:00:49 +0800 Subject: [PATCH 2/2] Switch lang to zh-CN zh-CN is more widely used and supported --- book.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.toml b/book.toml index dfb4d72..f74e96d 100644 --- a/book.toml +++ b/book.toml @@ -2,7 +2,7 @@ title = "Rust 程序设计语言 简体中文版" authors = ["Steve Klabnik 和 Carol Nichols,以及来自 Rust 社区的贡献(Rust 中文社区翻译)"] description = "Rust 程序设计语言 简体中文版" -language = "zh" +language = "zh-CN" [output.html] additional-css = ["ferris.css", "theme/2018-edition.css"]