Fix relative fragments for DocDef

This commit is contained in:
Richard Feldman 2021-08-08 23:32:37 -04:00
parent f263b0dba7
commit 235a68d332

View file

@ -150,7 +150,7 @@ fn render_main_content(
if should_render_entry {
match entry {
DocEntry::DocDef(doc_def) => {
let mut href = base_href();
let mut href = String::new();
href.push('#');
href.push_str(doc_def.name.as_str());