Updated the warning to give some basic migration instructions

This commit is contained in:
Michael Bryan 2017-11-12 21:26:59 +08:00
parent 238dfb7d1d
commit 5eff572dbb
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC
1 changed files with 4 additions and 2 deletions

View File

@ -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));
}