Skip to content

Commit

Permalink
Updated the warning to give some basic migration instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Nov 12, 2017
1 parent 238dfb7 commit 5eff572
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 5eff572

Please sign in to comment.