Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9b44dfc

Browse files
committedAug 3, 2014
rustdoc: Add rustdoc class to <body> tag
This allows for easier application of user stylesheets to rustdocs no matter where they are hosted.
1 parent 1c6ee3f commit 9b44dfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/librustdoc/html/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ r##"<!DOCTYPE html>
4848
{favicon}
4949
{in_header}
5050
</head>
51-
<body>
51+
<body class="rustdoc">
5252
<!--[if lte IE 8]>
5353
<div class="warning">
5454
This old browser is unsupported and will most likely display funky

‎src/librustdoc/markdown.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub fn render(input: &str, mut output: Path, matches: &getopts::Matches,
9898
{css}
9999
{in_header}
100100
</head>
101-
<body>
101+
<body class="rustdoc">
102102
<!--[if lte IE 8]>
103103
<div class="warning">
104104
This old browser is unsupported and will most likely display funky

5 commit comments

Comments
 (5)

bors commented on Aug 3, 2014

@bors
Collaborator

saw approval from alexcrichton
at tomjakubowski@9b44dfc

bors commented on Aug 3, 2014

@bors
Collaborator

tomjakubowski/rust/rustdoc-html-changes = 9b44dfc merged ok, testing candidate = d34e011

bors commented on Aug 3, 2014

@bors
Collaborator

merging tomjakubowski/rust/rustdoc-html-changes = 9b44dfc into auto

bors commented on Aug 3, 2014

@bors
Collaborator

fast-forwarding master to auto = d34e011

Please sign in to comment.