fix path used for finding partials
This commit is contained in:
parent
68a5c09fdf
commit
fe9e09e57b
|
@ -46,7 +46,7 @@ impl Preprocessor for LinkPreprocessor {
|
|||
|
||||
book.for_each_mut(|section: &mut BookItem| {
|
||||
if let BookItem::Chapter(ref mut ch) = *section {
|
||||
if let Some(ref chapter_path) = ch.path {
|
||||
if let Some(ref chapter_path) = ch.source_path {
|
||||
let base = chapter_path
|
||||
.parent()
|
||||
.map(|dir| src_dir.join(dir))
|
||||
|
|
Loading…
Reference in New Issue