Configure mdBook settings like title, edition, and preprocessors using the book.toml file.
Use the book.toml file to configure mdBook settings like the Rust edition, HTML output options, and preprocessors.
[book]
title = "My Rust Book"
authors = ["Your Name"]
[output.html]
additional-css = ["theme/custom.css"]
[rust]
edition = "2024"
[preprocessor.custom]
command = "cargo run --bin my-preprocessor"
TOML is a simple file format used to tell the mdBook tool how to build your documentation. You use it to set the book's title, define which Rust edition to use, and specify extra styles or scripts. Think of it as the instruction manual for the book builder.