The HTML renderer now cleans its own build directory
This commit is contained in:
parent
d1b5a8f982
commit
e56c41a1c2
|
@ -282,6 +282,9 @@ impl Renderer for HtmlHandlebars {
|
|||
let destination = &ctx.destination;
|
||||
let book = &ctx.book;
|
||||
|
||||
utils::remove_dir_contents(destination)
|
||||
.chain_err(|| "Unable to remove stale HTML output")?
|
||||
|
||||
trace!("render");
|
||||
let mut handlebars = Handlebars::new();
|
||||
|
||||
|
|
Loading…
Reference in New Issue