The HTML renderer now cleans its own build directory

This commit is contained in:
Michael Bryan 2019-07-21 02:37:09 +08:00
parent d1b5a8f982
commit e56c41a1c2
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC
1 changed files with 3 additions and 0 deletions

View File

@ -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();