diff options
| author | funkill <funkill2@gmail.com> | 2015-06-06 23:27:35 +0300 |
|---|---|---|
| committer | funkill <funkill2@gmail.com> | 2015-06-06 23:27:35 +0300 |
| commit | 5f5a84a59c38f8b8bfd9984917690f6db25a3aff (patch) | |
| tree | e918703d1aa7fa0a171879b7eeb85863ab956ab9 | |
| parent | bfd072db45d07a7c0ed2248737ef3c61131729fc (diff) | |
| download | rust-5f5a84a59c38f8b8bfd9984917690f6db25a3aff.tar.gz rust-5f5a84a59c38f8b8bfd9984917690f6db25a3aff.zip | |
fix path in toc links
| -rw-r--r-- | src/rustbook/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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, "<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() { |
