Fix some generated documentation styles

This commit is contained in:
Richard Feldman 2023-11-18 19:18:24 -05:00
parent 2bd8673941
commit b8f89a121b
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
4 changed files with 17 additions and 13 deletions

View file

@ -200,7 +200,7 @@ fn render_package_index(root_module: &LoadedModule) -> String {
// The HTML for the index page
let mut index_buf = String::new();
push_html(&mut index_buf, "h2", vec![], "Exposed Modules");
push_html(&mut index_buf, "h2", vec![("class", "module-name")], "Exposed Modules");
push_html(
&mut index_buf,
"ul",
@ -222,7 +222,7 @@ fn render_module_documentation(
push_html(&mut buf, "h2", vec![("class", "module-name")], {
let mut link_buf = String::new();
push_html(&mut link_buf, "a", vec![("href", "/#")], module_name);
push_html(&mut link_buf, "a", vec![("href", "/")], module_name);
link_buf
});