rustdoc: Tweak list style
This commit is contained in:
parent
34392ad5b4
commit
4d745c288a
2 changed files with 10 additions and 0 deletions
|
@ -101,4 +101,9 @@ td {
|
|||
#TOC ul {
|
||||
list-style: none;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
/* Adjust list alignment so rustdoc indexes don't align with blockquotes */
|
||||
div.index ul {
|
||||
padding-left: 1em;
|
||||
}
|
|
@ -436,6 +436,9 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
|
|||
return;
|
||||
}
|
||||
|
||||
ctxt.w.put_line(~"<div class='index'>");
|
||||
ctxt.w.put_line(~"");
|
||||
|
||||
for index.entries.each |entry| {
|
||||
let header = header_text_(entry.kind, entry.name);
|
||||
let id = copy entry.link;
|
||||
|
@ -447,6 +450,8 @@ fn write_index(ctxt: &Ctxt, index: doc::Index) {
|
|||
}
|
||||
}
|
||||
ctxt.w.put_line(~"");
|
||||
ctxt.w.put_line(~"</div>");
|
||||
ctxt.w.put_line(~"");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Reference in a new issue