diff --git a/src/librustdoc/externalfiles.rs b/src/librustdoc/externalfiles.rs index f7d07af04ea..03250542b4e 100644 --- a/src/librustdoc/externalfiles.rs +++ b/src/librustdoc/externalfiles.rs @@ -14,7 +14,7 @@ use std::str; use html::markdown::{Markdown, RenderType}; #[derive(Clone)] -pub struct ExternalHtml{ +pub struct ExternalHtml { /// Content that will be included inline in the section of a /// rendered Markdown file or generated documentation pub in_header: String, diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs index 3a18c6b8a80..8395b0686e1 100644 --- a/src/librustdoc/html/layout.rs +++ b/src/librustdoc/html/layout.rs @@ -10,6 +10,7 @@ use std::fmt; use std::io; +use std::path::PathBuf; use externalfiles::ExternalHtml; @@ -31,7 +32,7 @@ pub struct Page<'a> { pub fn render( dst: &mut io::Write, layout: &Layout, page: &Page, sidebar: &S, t: &T, - css_file_extension: bool) + css_file_extension: bool, themes: &[PathBuf]) -> io::Result<()> { write!(dst, @@ -47,8 +48,11 @@ r##" {title} - - + + {themes} + + + {css_extension} {favicon} @@ -70,6 +74,11 @@ r##" {sidebar} + +