Refactor the warning message related to copy_fonts so that a user simply configures it

This commit is contained in:
Tetsuya Morimoto 2023-04-28 12:46:49 +09:00
parent 41567b0456
commit 04016f3be6
1 changed files with 2 additions and 2 deletions

View File

@ -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."
);
}