From 731149d37abd521f96f2d6fb9182875281187e2d Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Thu, 6 Aug 2015 14:27:07 +0200 Subject: [PATCH] Fix bug where src and output where not in function of MDBook.root but the current working dir when using set_src() and set_dest() --- src/book/mdbook.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/book/mdbook.rs b/src/book/mdbook.rs index eb549e39..ad668b54 100644 --- a/src/book/mdbook.rs +++ b/src/book/mdbook.rs @@ -132,12 +132,12 @@ impl MDBook { } pub fn set_dest(mut self, dest: &Path) -> Self { - self.config.set_dest(dest); + self.config.set_dest(&self.root.join(dest)); self } pub fn set_src(mut self, src: &Path) -> Self { - self.config.set_src(src); + self.config.set_src(&self.root.join(src)); self }