Skip to content

Commit 84fbd67

Browse files
authored
Merge pull request #2775 from ehuss/remove-multilingual
Remove the book.multilingual field
2 parents cf7762f + 00eba96 commit 84fbd67

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

crates/mdbook-core/src/config.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -395,11 +395,6 @@ pub struct BookConfig {
395395
pub description: Option<String>,
396396
/// Location of the book source relative to the book's root directory.
397397
pub src: PathBuf,
398-
/// Does this book support more than one language?
399-
// TODO: Remove this field in 0.5, it is unused:
400-
// https://github.com/rust-lang/mdBook/issues/2636
401-
#[serde(skip_serializing)]
402-
pub multilingual: bool,
403398
/// The main language of the book.
404399
pub language: Option<String>,
405400
/// The direction of text in the book: Left-to-right (LTR) or Right-to-left (RTL).
@@ -414,7 +409,6 @@ impl Default for BookConfig {
414409
authors: Vec::new(),
415410
description: None,
416411
src: PathBuf::from("src"),
417-
multilingual: false,
418412
language: Some(String::from("en")),
419413
text_direction: None,
420414
}
@@ -798,7 +792,6 @@ mod tests {
798792
title = "Some Book"
799793
authors = ["Michael-F-Bryan <[email protected]>"]
800794
description = "A completely useless book"
801-
multilingual = true
802795
src = "source"
803796
language = "ja"
804797
@@ -837,7 +830,6 @@ mod tests {
837830
title: Some(String::from("Some Book")),
838831
authors: vec![String::from("Michael-F-Bryan <[email protected]>")],
839832
description: Some(String::from("A completely useless book")),
840-
multilingual: true,
841833
src: PathBuf::from("source"),
842834
language: Some(String::from("ja")),
843835
text_direction: None,

examples/nop-preprocessor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ mod nop_lib {
123123
"book": {
124124
"authors": ["AUTHOR"],
125125
"language": "en",
126-
"multilingual": false,
127126
"src": "src",
128127
"title": "TITLE"
129128
},
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
[book]
2-
authors = ["Eric Huss"]
3-
language = "en"
4-
multilingual = false
5-
src = "src"
62
title = "all_includes"

0 commit comments

Comments
 (0)