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

This commit is contained in:
Mathieu David 2015-08-06 14:27:07 +02:00
parent a0040733e9
commit 731149d37a

View file

@ -132,12 +132,12 @@ impl MDBook {
} }
pub fn set_dest(mut self, dest: &Path) -> Self { pub fn set_dest(mut self, dest: &Path) -> Self {
self.config.set_dest(dest); self.config.set_dest(&self.root.join(dest));
self self
} }
pub fn set_src(mut self, src: &Path) -> Self { pub fn set_src(mut self, src: &Path) -> Self {
self.config.set_src(src); self.config.set_src(&self.root.join(src));
self self
} }