Skip to content

Commit 5f5a84a

Browse files
committed
fix path in toc links
1 parent bfd072d commit 5f5a84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustbook/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
5959

6060
try!(writeln!(out, "<li><a {} href='{}'><b>{}</b> {}</a>",
6161
class_string,
62-
item.path_to_root.join(&item.path.with_extension("html")).display(),
62+
current_page.path_to_root.join(&item.path).with_extension("html").display(),
6363
section,
6464
item.title));
6565
if !item.children.is_empty() {

0 commit comments

Comments
 (0)