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:
parent
a0040733e9
commit
731149d37a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue