mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 06:42:35 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue