Skip to content

Commit 5eff572

Browse files
Updated the warning to give some basic migration instructions
1 parent 238dfb7 commit 5eff572

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/config.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,10 @@ impl<'de> Deserialize<'de> for Config {
161161
if is_legacy_format(&table) {
162162
warn!("It looks like you are using the legacy book.toml format.");
163163
warn!("We'll parse it for now, but you should probably convert to the new format.");
164-
warn!("See the mdbook documentation for more details");
165-
warn!("http://azerupi.github.io/mdBook/format/config.html");
164+
warn!("See the mdbook documentation for more details, although as a rule of thumb");
165+
warn!("just move all top level configuration entries like `title`, `author` and ");
166+
warn!("`description` under a table called `[book]` and it should all work.");
167+
warn!("Documentation: http://rust-lang-nursery.github.io/mdBook/format/config.html");
166168
return Ok(Config::from_legacy(table));
167169
}
168170

0 commit comments

Comments
 (0)