From 04016f3be67aa61a463ce7ad39b5260626fbae76 Mon Sep 17 00:00:00 2001 From: Tetsuya Morimoto Date: Fri, 28 Apr 2023 12:46:49 +0900 Subject: [PATCH] Refactor the warning message related to copy_fonts so that a user simply configures it --- src/renderer/html_handlebars/hbs_renderer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index e170e2fc..479f5a78 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -294,7 +294,7 @@ impl HtmlHandlebars { if html_config.copy_fonts { warn!( "output.html.copy_fonts is deprecated.\n\ - Set copy_fonts=false and ensure the fonts you want are in \ + Set copy-fonts=false in book.toml and ensure the fonts you want are in \ the `theme/fonts/` directory." ); } @@ -304,7 +304,7 @@ impl HtmlHandlebars { if !html_config.copy_fonts && theme.fonts_css.is_none() { warn!( "output.html.copy_fonts is deprecated.\n\ - This book appears to have copy_fonts=false without a fonts.css file.\n\ + This book appears to have copy-fonts=false in book.toml without a fonts.css file.\n\ Add an empty `theme/fonts/fonts.css` file to squelch this warning." ); }