diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index a144b32b57..210aac22d6 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -16,7 +16,7 @@ use std::sync::LazyLock; use crate::utils::fs::get_404_output_file; use handlebars::Handlebars; -use log::{debug, trace, warn}; +use log::{debug, info, trace, warn}; use regex::{Captures, Regex}; use serde_json::json; @@ -482,6 +482,8 @@ impl Renderer for HtmlHandlebars { // Copy all remaining files, avoid a recursive copy from/to the book build dir utils::fs::copy_files_except_ext(&src_dir, destination, true, Some(&build_dir), &["md"])?; + info!("Book has been generated into `{}`", build_dir.display()); + Ok(()) } } diff --git a/tests/testsuite/build.rs b/tests/testsuite/build.rs index f197e974bb..449526d026 100644 --- a/tests/testsuite/build.rs +++ b/tests/testsuite/build.rs @@ -12,6 +12,7 @@ fn basic_build() { cmd.expect_stderr(str![[r#" [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }); diff --git a/tests/testsuite/includes.rs b/tests/testsuite/includes.rs index 312caede8a..b3766d1c44 100644 --- a/tests/testsuite/includes.rs +++ b/tests/testsuite/includes.rs @@ -48,6 +48,7 @@ fn recursive_include() { [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [ERROR] (mdbook::preprocess::links): Stack depth exceeded in recursive.md. Check for cyclic includes [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }) diff --git a/tests/testsuite/markdown.rs b/tests/testsuite/markdown.rs index c4bfbd0747..a654ea540c 100644 --- a/tests/testsuite/markdown.rs +++ b/tests/testsuite/markdown.rs @@ -26,6 +26,7 @@ fn footnotes() { [TIMESTAMP] [WARN] (mdbook::utils): footnote `unused` in `` is defined but not referenced [TIMESTAMP] [WARN] (mdbook::utils): footnote `multiple-definitions` in footnotes.md defined multiple times - not updating to new definition [TIMESTAMP] [WARN] (mdbook::utils): footnote `unused` in `footnotes.md` is defined but not referenced +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }) diff --git a/tests/testsuite/preprocessor.rs b/tests/testsuite/preprocessor.rs index d2c1608bd7..68afeb5008 100644 --- a/tests/testsuite/preprocessor.rs +++ b/tests/testsuite/preprocessor.rs @@ -48,6 +48,7 @@ fn nop_preprocessor() { cmd.expect_stdout(str![[""]]).expect_stderr(str![[r#" [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }); diff --git a/tests/testsuite/theme.rs b/tests/testsuite/theme.rs index 245952f5cc..d13ab8564a 100644 --- a/tests/testsuite/theme.rs +++ b/tests/testsuite/theme.rs @@ -26,6 +26,7 @@ fn empty_theme() { cmd.expect_stderr(str![[r#" [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }); @@ -149,6 +150,7 @@ fn copy_fonts_false_no_theme() { [TIMESTAMP] [WARN] (mdbook::renderer::html_handlebars::static_files): output.html.copy-fonts is deprecated. This book appears to have copy-fonts=false in book.toml without a fonts.css file. Add an empty `theme/fonts/fonts.css` file to squelch this warning. +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }) @@ -164,6 +166,7 @@ fn copy_fonts_false_with_empty_fonts_css() { cmd.expect_stderr(str![[r#" [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); }) @@ -179,6 +182,7 @@ fn copy_fonts_false_with_fonts_css() { cmd.expect_stderr(str![[r#" [TIMESTAMP] [INFO] (mdbook::book): Book building has started [TIMESTAMP] [INFO] (mdbook::book): Running the html backend +[TIMESTAMP] [INFO] (mdbook::renderer::html_handlebars::hbs_renderer): Book has been generated into `[ROOT]/book` "#]]); })