From 5eff572dbbaf6595a5143a092fcf5644db614e2f Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sun, 12 Nov 2017 21:26:59 +0800 Subject: [PATCH] Updated the warning to give some basic migration instructions --- src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 7ebe7406..fd2ed2f0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -161,8 +161,10 @@ impl<'de> Deserialize<'de> for Config { if is_legacy_format(&table) { warn!("It looks like you are using the legacy book.toml format."); warn!("We'll parse it for now, but you should probably convert to the new format."); - warn!("See the mdbook documentation for more details"); - warn!("http://azerupi.github.io/mdBook/format/config.html"); + warn!("See the mdbook documentation for more details, although as a rule of thumb"); + warn!("just move all top level configuration entries like `title`, `author` and "); + warn!("`description` under a table called `[book]` and it should all work."); + warn!("Documentation: http://rust-lang-nursery.github.io/mdBook/format/config.html"); return Ok(Config::from_legacy(table)); }