diff --git a/src/librustdoc/html/layout.rs b/src/librustdoc/html/layout.rs
index 1ead428ff49..d8a57bc93fd 100644
--- a/src/librustdoc/html/layout.rs
+++ b/src/librustdoc/html/layout.rs
@@ -30,11 +30,13 @@ pub struct Page<'a> {
pub description: &'a str,
pub keywords: &'a str,
pub resource_suffix: &'a str,
+ pub extra_scripts: &'a [&'a str],
+ pub static_extra_scripts: &'a [&'a str],
}
pub fn render(
dst: &mut dyn io::Write, layout: &Layout, page: &Page, sidebar: &S, t: &T,
- css_file_extension: bool, themes: &[PathBuf], extra_scripts: &[&str])
+ css_file_extension: bool, themes: &[PathBuf])
-> io::Result<()>
{
let static_root_path = page.static_root_path.unwrap_or(page.root_path);
@@ -164,6 +166,7 @@ pub fn render(
\
\
\
+ {static_extra_scripts}\
{extra_scripts}\
\