From 63c540e861499f0c2ca31a5055f4bf03c7940d4d Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Fri, 21 Nov 2025 12:43:11 -0800 Subject: [PATCH] Prepare for mdbook 0.5 migration Because the pull_request checks are building docs from main, the checks fail due to mdbook 0.5 changing and removing some fields. This change should allow the books to work with both 0.4 and 0.5. In particular: - `multilingual` -- This was never used, is optional, and is ignored in 0.4. This is rejected in 0.5. - `curly-quotes` -- This was renamed to `smart-punctuation` a long while ago. Both 0.4 and 0.5 use `smart-punctuation`, and 0.5 has removed the old `curly-quotes`. - `src` -- This isn't needed and is an artifact of an `mdbook init` bug. --- doc/dev-guide/book.toml | 4 +--- doc/user-guide/book.toml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/dev-guide/book.toml b/doc/dev-guide/book.toml index dd48698d4c..e280329c9b 100644 --- a/doc/dev-guide/book.toml +++ b/doc/dev-guide/book.toml @@ -1,12 +1,10 @@ [book] authors = ["The Rust Project Developers"] language = "en" -multilingual = false -src = "src" title = "The Rustup developer guide" [output.html] -curly-quotes = true +smart-punctuation = true edit-url-template = "https://github.com/rust-lang/rustup/edit/HEAD/doc/dev-guide/{path}" git-repository-url = "https://github.com/rust-lang/rustup/tree/HEAD/doc/dev-guide" site-url = "https://rust-lang.github.io/rustup/dev-guide" diff --git a/doc/user-guide/book.toml b/doc/user-guide/book.toml index 036b36628f..202c3a8e8b 100644 --- a/doc/user-guide/book.toml +++ b/doc/user-guide/book.toml @@ -3,7 +3,7 @@ authors = ["The Rust Project Developers"] title = "The rustup book" [output.html] -curly-quotes = true +smart-punctuation = true edit-url-template = "https://github.com/rust-lang/rustup/edit/HEAD/doc/user-guide/{path}" git-repository-url = "https://github.com/rust-lang/rustup/tree/HEAD/doc/user-guide" site-url = "https://rust-lang.github.io/rustup/"