The MDBook::build() method no longer cleans the renderer's build directory

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

View File

@ -192,16 +192,6 @@ impl MDBook {
let name = renderer.name(); let name = renderer.name();
let build_dir = self.build_dir_for(name); let build_dir = self.build_dir_for(name);
if build_dir.exists() {
debug!(
"Cleaning build dir for the \"{}\" renderer ({})",
name,
build_dir.display()
);
utils::fs::remove_dir_content(&build_dir)
.chain_err(|| "Unable to clear output directory")?;
}
for preprocessor in &self.preprocessors { for preprocessor in &self.preprocessors {
if preprocessor_should_run(&**preprocessor, renderer, &self.config) { if preprocessor_should_run(&**preprocessor, renderer, &self.config) {