fix path in toc links
This commit is contained in:
parent
bfd072db45
commit
5f5a84a59c
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
|
|||
|
||||
try!(writeln!(out, "<li><a {} href='{}'><b>{}</b> {}</a>",
|
||||
class_string,
|
||||
item.path_to_root.join(&item.path.with_extension("html")).display(),
|
||||
current_page.path_to_root.join(&item.path).with_extension("html").display(),
|
||||
section,
|
||||
item.title));
|
||||
if !item.children.is_empty() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue