Skip to content

Commit 75a6d65

Browse files
committed
Don't warn on copy-fonts=true (the default) when fonts.css is overridden.
1 parent 04016f3 commit 75a6d65

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -291,19 +291,12 @@ impl HtmlHandlebars {
291291
}
292292
if let Some(fonts_css) = &theme.fonts_css {
293293
if !fonts_css.is_empty() {
294-
if html_config.copy_fonts {
295-
warn!(
296-
"output.html.copy_fonts is deprecated.\n\
297-
Set copy-fonts=false in book.toml and ensure the fonts you want are in \
298-
the `theme/fonts/` directory."
299-
);
300-
}
301294
write_file(destination, "fonts/fonts.css", &fonts_css)?;
302295
}
303296
}
304297
if !html_config.copy_fonts && theme.fonts_css.is_none() {
305298
warn!(
306-
"output.html.copy_fonts is deprecated.\n\
299+
"output.html.copy-fonts is deprecated.\n\
307300
This book appears to have copy-fonts=false in book.toml without a fonts.css file.\n\
308301
Add an empty `theme/fonts/fonts.css` file to squelch this warning."
309302
);

0 commit comments

Comments
 (0)