Skip to content

Commit

Permalink
rustdoc: Tweak list style
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Mar 26, 2013
1 parent 34392ad commit 4d745c2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/rust.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
5 changes: 5 additions & 0 deletions src/librustdoc/markdown_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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]
Expand Down

5 comments on commit 4d745c2

@bors
Copy link
Contributor

@bors bors commented on 4d745c2 Mar 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at brson@4d745c2

@bors
Copy link
Contributor

@bors bors commented on 4d745c2 Mar 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/rustdoc = 4d745c2 into auto

@bors
Copy link
Contributor

@bors bors commented on 4d745c2 Mar 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/rustdoc = 4d745c2 merged ok, testing candidate = 7f5d7e1

@bors
Copy link
Contributor

@bors bors commented on 4d745c2 Mar 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 4d745c2 Mar 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 7f5d7e1

Please sign in to comment.