From 4a1a88a4ffe60f356413633b4459efe72ce662e1 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 This is the stable-branch version of https://github.com/rust-lang/rustup/pull/4612 Because the pull_request checks are building docs from main and stable, 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 ca6d28278a..891080bd26 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/master/doc/dev-guide/{path}" git-repository-url = "https://github.com/rust-lang/rustup/tree/master/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 06f3c0d2dd..9ac0171ea1 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/master/doc/user-guide/{path}" git-repository-url = "https://github.com/rust-lang/rustup/tree/master/doc/user-guide" site-url = "https://rust-lang.github.io/rustup/"