Skip to content

Commit 9b44dfc

Browse files
committed
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

+1-1
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

+1-1
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

0 commit comments

Comments
 (0)