@@ -1089,6 +1089,8 @@ themePicker.onblur = handleThemeButtonsBlur;
1089
1089
description : "List of crates" ,
1090
1090
keywords : BASIC_KEYWORDS ,
1091
1091
resource_suffix : & cx. shared . resource_suffix ,
1092
+ extra_scripts : & [ ] ,
1093
+ static_extra_scripts : & [ ] ,
1092
1094
} ;
1093
1095
krates. push ( krate. name . clone ( ) ) ;
1094
1096
krates. sort ( ) ;
@@ -1107,7 +1109,7 @@ themePicker.onblur = handleThemeButtonsBlur;
1107
1109
try_err ! ( layout:: render( & mut w, & cx. shared. layout,
1108
1110
& page, & ( "" ) , & content,
1109
1111
cx. shared. css_file_extension. is_some( ) ,
1110
- & cx. shared. themes, & [ ] ) , & dst) ;
1112
+ & cx. shared. themes) , & dst) ;
1111
1113
try_err ! ( w. flush( ) , & dst) ;
1112
1114
}
1113
1115
}
@@ -1376,12 +1378,13 @@ impl<'a> SourceCollector<'a> {
1376
1378
description : & desc,
1377
1379
keywords : BASIC_KEYWORDS ,
1378
1380
resource_suffix : & self . scx . resource_suffix ,
1381
+ extra_scripts : & [ "source-files" ] ,
1382
+ static_extra_scripts : & [ & format ! ( "source-script{}" , self . scx. resource_suffix) ] ,
1379
1383
} ;
1380
1384
layout:: render ( & mut w, & self . scx . layout ,
1381
1385
& page, & ( "" ) , & Source ( contents) ,
1382
1386
self . scx . css_file_extension . is_some ( ) ,
1383
- & self . scx . themes , & [ "source-files" ,
1384
- & format ! ( "source-script{}" , page. resource_suffix) ] ) ?;
1387
+ & self . scx . themes ) ?;
1385
1388
w. flush ( ) ?;
1386
1389
self . scx . local_sources . insert ( p. clone ( ) , href) ;
1387
1390
Ok ( ( ) )
@@ -1967,6 +1970,8 @@ impl Context {
1967
1970
description : "List of all items in this crate" ,
1968
1971
keywords : BASIC_KEYWORDS ,
1969
1972
resource_suffix : & self . shared . resource_suffix ,
1973
+ extra_scripts : & [ ] ,
1974
+ static_extra_scripts : & [ ] ,
1970
1975
} ;
1971
1976
let sidebar = if let Some ( ref version) = cache ( ) . crate_version {
1972
1977
format ! ( "<p class='location'>Crate {}</p>\
@@ -1981,7 +1986,7 @@ impl Context {
1981
1986
try_err ! ( layout:: render( & mut w, & self . shared. layout,
1982
1987
& page, & sidebar, & all,
1983
1988
self . shared. css_file_extension. is_some( ) ,
1984
- & self . shared. themes, & [ ] ) ,
1989
+ & self . shared. themes) ,
1985
1990
& final_file) ;
1986
1991
1987
1992
// Generating settings page.
@@ -2001,7 +2006,7 @@ impl Context {
2001
2006
try_err ! ( layout:: render( & mut w, & layout,
2002
2007
& page, & sidebar, & settings,
2003
2008
self . shared. css_file_extension. is_some( ) ,
2004
- & themes, & [ ] ) ,
2009
+ & themes) ,
2005
2010
& settings_file) ;
2006
2011
2007
2012
Ok ( ( ) )
@@ -2048,6 +2053,8 @@ impl Context {
2048
2053
description : & desc,
2049
2054
keywords : & keywords,
2050
2055
resource_suffix : & self . shared . resource_suffix ,
2056
+ extra_scripts : & [ ] ,
2057
+ static_extra_scripts : & [ ] ,
2051
2058
} ;
2052
2059
2053
2060
{
@@ -2060,7 +2067,7 @@ impl Context {
2060
2067
& Sidebar { cx : self , item : it } ,
2061
2068
& Item { cx : self , item : it } ,
2062
2069
self . shared . css_file_extension . is_some ( ) ,
2063
- & self . shared . themes , & [ ] ) ?;
2070
+ & self . shared . themes ) ?;
2064
2071
} else {
2065
2072
let mut url = self . root_path ( ) ;
2066
2073
if let Some ( & ( ref names, ty) ) = cache ( ) . paths . get ( & it. def_id ) {
0 commit comments