mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 23:27:17 +00:00
The HTML renderer now cleans its own build directory
This commit is contained in:
parent
d1b5a8f982
commit
e56c41a1c2
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue