Merge pull request #134 from Bobo1239/serve-print
Add host and port output when running mdbook serve Closes #132
This commit is contained in:
commit
cfcf6d952f
|
@ -226,6 +226,8 @@ fn serve(args: &ArgMatches) -> Result<(), Box<Error>> {
|
|||
ws_server.listen(&*ws_address).unwrap();
|
||||
});
|
||||
|
||||
println!("\nServing on {}", address);
|
||||
|
||||
trigger_on_change(&mut book, move |event, book| {
|
||||
if let Some(path) = event.path {
|
||||
println!("File changed: {:?}\nBuilding book...\n", path);
|
||||
|
|
Loading…
Reference in New Issue