@@ -129,8 +129,8 @@ pub struct SharedContext {
129
129
pub sort_modules_alphabetically : bool ,
130
130
/// Additional themes to be added to the generated docs.
131
131
pub themes : Vec < PathBuf > ,
132
- /// Suffix to be added on resource files (if suffix is "-v2" then "main .css" becomes
133
- /// "main -v2.css").
132
+ /// Suffix to be added on resource files (if suffix is "-v2" then "light .css" becomes
133
+ /// "light -v2.css").
134
134
pub resource_suffix : String ,
135
135
}
136
136
@@ -743,7 +743,7 @@ fn write_shared(cx: &Context,
743
743
write ( cx. dst . join ( & format ! ( "rustdoc{}.css" , cx. shared. resource_suffix) ) ,
744
744
include_bytes ! ( "static/rustdoc.css" ) ) ?;
745
745
746
- // To avoid "main .css" to be overwritten, we'll first run over the received themes and only
746
+ // To avoid "light .css" to be overwritten, we'll first run over the received themes and only
747
747
// then we'll run over the "official" styles.
748
748
let mut themes: HashSet < String > = HashSet :: new ( ) ;
749
749
@@ -761,9 +761,9 @@ fn write_shared(cx: &Context,
761
761
762
762
write ( cx. dst . join ( & format ! ( "brush{}.svg" , cx. shared. resource_suffix) ) ,
763
763
include_bytes ! ( "static/brush.svg" ) ) ?;
764
- write ( cx. dst . join ( & format ! ( "main {}.css" , cx. shared. resource_suffix) ) ,
765
- include_bytes ! ( "static/themes/main .css" ) ) ?;
766
- themes. insert ( "main " . to_owned ( ) ) ;
764
+ write ( cx. dst . join ( & format ! ( "light {}.css" , cx. shared. resource_suffix) ) ,
765
+ include_bytes ! ( "static/themes/light .css" ) ) ?;
766
+ themes. insert ( "light " . to_owned ( ) ) ;
767
767
write ( cx. dst . join ( & format ! ( "dark{}.css" , cx. shared. resource_suffix) ) ,
768
768
include_bytes ! ( "static/themes/dark.css" ) ) ?;
769
769
themes. insert ( "dark" . to_owned ( ) ) ;
0 commit comments