@@ -129,8 +129,8 @@ pub struct SharedContext {
129129 pub sort_modules_alphabetically : bool ,
130130 /// Additional themes to be added to the generated docs.
131131 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").
134134 pub resource_suffix : String ,
135135}
136136
@@ -743,7 +743,7 @@ fn write_shared(cx: &Context,
743743 write ( cx. dst . join ( & format ! ( "rustdoc{}.css" , cx. shared. resource_suffix) ) ,
744744 include_bytes ! ( "static/rustdoc.css" ) ) ?;
745745
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
747747 // then we'll run over the "official" styles.
748748 let mut themes: HashSet < String > = HashSet :: new ( ) ;
749749
@@ -761,9 +761,9 @@ fn write_shared(cx: &Context,
761761
762762 write ( cx. dst . join ( & format ! ( "brush{}.svg" , cx. shared. resource_suffix) ) ,
763763 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 ( ) ) ;
767767 write ( cx. dst . join ( & format ! ( "dark{}.css" , cx. shared. resource_suffix) ) ,
768768 include_bytes ! ( "static/themes/dark.css" ) ) ?;
769769 themes. insert ( "dark" . to_owned ( ) ) ;
0 commit comments