From 5f5a84a59c38f8b8bfd9984917690f6db25a3aff Mon Sep 17 00:00:00 2001 From: funkill Date: Sat, 6 Jun 2015 23:27:35 +0300 Subject: [PATCH] fix path in toc links --- src/rustbook/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rustbook/build.rs b/src/rustbook/build.rs index 31c973214a1..5ffb9b007d0 100644 --- a/src/rustbook/build.rs +++ b/src/rustbook/build.rs @@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul try!(writeln!(out, "
  • {} {}", 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() {