From d1b5a8f982dc695b19a21e5519ef9ca5a3467e08 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sun, 21 Jul 2019 02:35:18 +0800 Subject: [PATCH] The MDBook::build() method no longer cleans the renderer's build directory --- src/book/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/book/mod.rs b/src/book/mod.rs index 830bf9db..c8cab192 100644 --- a/src/book/mod.rs +++ b/src/book/mod.rs @@ -192,16 +192,6 @@ impl MDBook { let name = renderer.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 { if preprocessor_should_run(&**preprocessor, renderer, &self.config) {