@@ -1089,6 +1089,8 @@ themePicker.onblur = handleThemeButtonsBlur;
10891089 description : "List of crates" ,
10901090 keywords : BASIC_KEYWORDS ,
10911091 resource_suffix : & cx. shared . resource_suffix ,
1092+ extra_scripts : & [ ] ,
1093+ static_extra_scripts : & [ ] ,
10921094 } ;
10931095 krates. push ( krate. name . clone ( ) ) ;
10941096 krates. sort ( ) ;
@@ -1107,7 +1109,7 @@ themePicker.onblur = handleThemeButtonsBlur;
11071109 try_err ! ( layout:: render( & mut w, & cx. shared. layout,
11081110 & page, & ( "" ) , & content,
11091111 cx. shared. css_file_extension. is_some( ) ,
1110- & cx. shared. themes, & [ ] ) , & dst) ;
1112+ & cx. shared. themes) , & dst) ;
11111113 try_err ! ( w. flush( ) , & dst) ;
11121114 }
11131115 }
@@ -1376,12 +1378,13 @@ impl<'a> SourceCollector<'a> {
13761378 description : & desc,
13771379 keywords : BASIC_KEYWORDS ,
13781380 resource_suffix : & self . scx . resource_suffix ,
1381+ extra_scripts : & [ "source-files" ] ,
1382+ static_extra_scripts : & [ & format ! ( "source-script{}" , self . scx. resource_suffix) ] ,
13791383 } ;
13801384 layout:: render ( & mut w, & self . scx . layout ,
13811385 & page, & ( "" ) , & Source ( contents) ,
13821386 self . scx . css_file_extension . is_some ( ) ,
1383- & self . scx . themes , & [ "source-files" ,
1384- & format ! ( "source-script{}" , page. resource_suffix) ] ) ?;
1387+ & self . scx . themes ) ?;
13851388 w. flush ( ) ?;
13861389 self . scx . local_sources . insert ( p. clone ( ) , href) ;
13871390 Ok ( ( ) )
@@ -1967,6 +1970,8 @@ impl Context {
19671970 description : "List of all items in this crate" ,
19681971 keywords : BASIC_KEYWORDS ,
19691972 resource_suffix : & self . shared . resource_suffix ,
1973+ extra_scripts : & [ ] ,
1974+ static_extra_scripts : & [ ] ,
19701975 } ;
19711976 let sidebar = if let Some ( ref version) = cache ( ) . crate_version {
19721977 format ! ( "<p class='location'>Crate {}</p>\
@@ -1981,7 +1986,7 @@ impl Context {
19811986 try_err ! ( layout:: render( & mut w, & self . shared. layout,
19821987 & page, & sidebar, & all,
19831988 self . shared. css_file_extension. is_some( ) ,
1984- & self . shared. themes, & [ ] ) ,
1989+ & self . shared. themes) ,
19851990 & final_file) ;
19861991
19871992 // Generating settings page.
@@ -2001,7 +2006,7 @@ impl Context {
20012006 try_err ! ( layout:: render( & mut w, & layout,
20022007 & page, & sidebar, & settings,
20032008 self . shared. css_file_extension. is_some( ) ,
2004- & themes, & [ ] ) ,
2009+ & themes) ,
20052010 & settings_file) ;
20062011
20072012 Ok ( ( ) )
@@ -2048,6 +2053,8 @@ impl Context {
20482053 description : & desc,
20492054 keywords : & keywords,
20502055 resource_suffix : & self . shared . resource_suffix ,
2056+ extra_scripts : & [ ] ,
2057+ static_extra_scripts : & [ ] ,
20512058 } ;
20522059
20532060 {
@@ -2060,7 +2067,7 @@ impl Context {
20602067 & Sidebar { cx : self , item : it } ,
20612068 & Item { cx : self , item : it } ,
20622069 self . shared . css_file_extension . is_some ( ) ,
2063- & self . shared . themes , & [ ] ) ?;
2070+ & self . shared . themes ) ?;
20642071 } else {
20652072 let mut url = self . root_path ( ) ;
20662073 if let Some ( & ( ref names, ty) ) = cache ( ) . paths . get ( & it. def_id ) {
0 commit comments