File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,16 @@ impl MDBook {
47
47
let book_root = book_root. into ( ) ;
48
48
let config_location = book_root. join ( "book.toml" ) ;
49
49
50
+ // the book.json file is no longer used, so we should emit a warning to
51
+ // let people know to migrate to book.toml
52
+ if book_root. join ( "book.json" ) . exists ( ) {
53
+ warn ! ( "It appears you are still using book.json for configuration." ) ;
54
+ warn ! ( "This format is no longer used, so you should migrate to the" ) ;
55
+ warn ! ( "book.toml format." ) ;
56
+ warn ! ( "Check the user guide for migration information:" ) ;
57
+ warn ! ( "\t https://rust-lang-nursery.github.io/mdBook/format/config.html" ) ;
58
+ }
59
+
50
60
let config = if config_location. exists ( ) {
51
61
debug ! ( "[*] Loading config from {}" , config_location. display( ) ) ;
52
62
Config :: from_disk ( & config_location) ?
You can’t perform that action at this time.
0 commit comments