File tree 1 file changed +1
-8
lines changed
src/renderer/html_handlebars
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -291,19 +291,12 @@ impl HtmlHandlebars {
291
291
}
292
292
if let Some ( fonts_css) = & theme. fonts_css {
293
293
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
- }
301
294
write_file ( destination, "fonts/fonts.css" , & fonts_css) ?;
302
295
}
303
296
}
304
297
if !html_config. copy_fonts && theme. fonts_css . is_none ( ) {
305
298
warn ! (
306
- "output.html.copy_fonts is deprecated.\n \
299
+ "output.html.copy-fonts is deprecated.\n \
307
300
This book appears to have copy-fonts=false in book.toml without a fonts.css file.\n \
308
301
Add an empty `theme/fonts/fonts.css` file to squelch this warning."
309
302
) ;
You can’t perform that action at this time.
0 commit comments