Copy favicon on 'init --theme'

This commit is contained in:
Jesse Stricker 2016-02-22 17:20:54 +01:00
parent f508db6113
commit 88fabd76f0
1 changed files with 4 additions and 0 deletions

View File

@ -198,6 +198,10 @@ impl MDBook {
let mut css = try!(File::create(&theme_dir.join("book.css"))); let mut css = try!(File::create(&theme_dir.join("book.css")));
try!(css.write_all(theme::CSS)); try!(css.write_all(theme::CSS));
// favicon.png
let mut favicon = try!(File::create(&theme_dir.join("favicon.png")));
try!(favicon.write_all(theme::FAVICON));
// book.js // book.js
let mut js = try!(File::create(&theme_dir.join("book.js"))); let mut js = try!(File::create(&theme_dir.join("book.js")));
try!(js.write_all(theme::JS)); try!(js.write_all(theme::JS));