From 19b59a4a5e8a4ee68849eb316e79b951a05febe1 Mon Sep 17 00:00:00 2001 From: Hollow Man Date: Mon, 18 Aug 2025 19:46:18 +0300 Subject: [PATCH] Support building books using mdbook in main (v0.5.x) - Missing preprocessors are now an error unless the `optional` field is set: https://github.com/rust-lang/mdBook/commit/d7892f56013ea2cab11c7c581f2c5f2c1d3cb2c6 - Fix: [ERROR] (mdbook_core::utils): Error: Failed to deserialize `{name}`. Caused By: unknown field `editor`, expected one of `editable`, `copyable`, `copy-js`, `line-numbers`, `runnable` Signed-off-by: Hollow Man --- book.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.toml b/book.toml index 16a9d6f80b..65d8616b18 100644 --- a/book.toml +++ b/book.toml @@ -5,7 +5,6 @@ authors = ["The Rust Community"] [output.html.playpen] editable = true -editor = "ace" line-numbers = true [output.html.fold] @@ -27,4 +26,5 @@ edition = "2021" extra-watch-dirs = ["po"] [preprocessor.gettext] +optional = true after = ["links"]