We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4e14ef0 + 5f5a84a commit dc72834Copy full SHA for dc72834
src/rustbook/build.rs
@@ -59,7 +59,7 @@ fn write_toc(book: &Book, current_page: &BookItem, out: &mut Write) -> io::Resul
59
60
try!(writeln!(out, "<li><a {} href='{}'><b>{}</b> {}</a>",
61
class_string,
62
- item.path_to_root.join(&item.path.with_extension("html")).display(),
+ current_page.path_to_root.join(&item.path).with_extension("html").display(),
63
section,
64
item.title));
65
if !item.children.is_empty() {
0 commit comments