From 18be90649e5e76e2259924c6d0c594a244583611 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sun, 6 Jun 2021 09:59:46 -0400 Subject: [PATCH] Don't link to .html files anymore We now generate index.html files, so the .html suffix is no longer needed! --- docs/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/src/lib.rs b/docs/src/lib.rs index d4de9c25d2..a7db7eb73e 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -229,7 +229,6 @@ fn render_sidebar<'a, I: Iterator>(modules: I) - let href = { let mut href_buf = String::new(); href_buf.push_str(name); - href_buf.push_str(".html"); href_buf }; @@ -568,7 +567,7 @@ fn make_doc_link(scope: &mut Scope, interns: &Interns, doc_item: &str) -> String let mut link = String::new(); link.push_str(module_str); - link.push_str(".html#"); + link.push_str("#"); link.push_str(ident_str); let mut buf = String::new();