Copy favicon on 'init --theme'
This commit is contained in:
parent
f508db6113
commit
88fabd76f0
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue