about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorTom Jakubowski <tom@crystae.net>2014-08-02 18:20:27 -0700
committerTom Jakubowski <tom@crystae.net>2014-08-02 18:59:59 -0700
commit9b44dfc7644978592ce7f9d4a683c552a5021cef (patch)
tree2594386b8d392c6f88819b1d1396fbc9ac270714 /src
parent1c6ee3f27d854e74d0549a49cb1bbe0b241ed7d7 (diff)
downloadrust-9b44dfc7644978592ce7f9d4a683c552a5021cef.tar.gz
rust-9b44dfc7644978592ce7f9d4a683c552a5021cef.zip
rustdoc: Add rustdoc class to <body> tag
This allows for easier application of user stylesheets to rustdocs no
matter where they are hosted.
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/layout.rs2
-rw-r--r--src/librustdoc/markdown.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index bbc41865a8d..70e9d004160 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -48,7 +48,7 @@ r##"<!DOCTYPE html>
     {favicon}
     {in_header}
 </head>
-<body>
+<body class="rustdoc">
     <!--[if lte IE 8]>
     <div class="warning">
         This old browser is unsupported and will most likely display funky
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs
index 29da9462c7f..98b902f4504 100644
--- a/src/librustdoc/markdown.rs
+++ b/src/librustdoc/markdown.rs
@@ -98,7 +98,7 @@ pub fn render(input: &str, mut output: Path, matches: &getopts::Matches,
     {css}
     {in_header}
 </head>
-<body>
+<body class="rustdoc">
     <!--[if lte IE 8]>
     <div class="warning">
         This old browser is unsupported and will most likely display funky