Skip to content

Commit 9331603

Browse files
ehussdjc
authored andcommitted
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.
1 parent d0f431c commit 9331603

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

doc/dev-guide/book.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
[book]
22
authors = ["The Rust Project Developers"]
33
language = "en"
4-
multilingual = false
5-
src = "src"
64
title = "The Rustup developer guide"
75

86
[output.html]
9-
curly-quotes = true
7+
smart-punctuation = true
108
edit-url-template = "https://github.com/rust-lang/rustup/edit/HEAD/doc/dev-guide/{path}"
119
git-repository-url = "https://github.com/rust-lang/rustup/tree/HEAD/doc/dev-guide"
1210
site-url = "https://rust-lang.github.io/rustup/dev-guide"

doc/user-guide/book.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["The Rust Project Developers"]
33
title = "The rustup book"
44

55
[output.html]
6-
curly-quotes = true
6+
smart-punctuation = true
77
edit-url-template = "https://github.com/rust-lang/rustup/edit/HEAD/doc/user-guide/{path}"
88
git-repository-url = "https://github.com/rust-lang/rustup/tree/HEAD/doc/user-guide"
99
site-url = "https://rust-lang.github.io/rustup/"

0 commit comments

Comments
 (0)