@@ -297,7 +297,7 @@ fn copy_dir(source: impl AsRef<Path>, dest: impl AsRef<Path>) -> Result<(), io::
297
297
}
298
298
299
299
pub fn main ( ) -> eyre:: Result < ( ) > {
300
- let blog = Generator :: new ( "site " , "content" ) ?;
300
+ let blog = Generator :: new ( "public " , "content" ) ?;
301
301
302
302
blog. render ( ) ?;
303
303
@@ -306,11 +306,11 @@ pub fn main() -> eyre::Result<()> {
306
306
307
307
#[ test]
308
308
fn snapshot ( ) {
309
- let _ = std:: fs:: remove_dir_all ( concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/site " ) ) ;
309
+ let _ = std:: fs:: remove_dir_all ( concat ! ( env!( "CARGO_MANIFEST_DIR" ) , "/public " ) ) ;
310
310
main ( ) . unwrap ( ) ;
311
311
let timestamped_files = [ "releases.json" , "feed.xml" ] ;
312
312
let inexplicably_non_deterministic_files = [ "images/2023-08-rust-survey-2022/experiences.png" ] ;
313
- insta:: glob!( ".." , "site /**/*" , |path| {
313
+ insta:: glob!( ".." , "public /**/*" , |path| {
314
314
if path. is_dir( ) {
315
315
return ;
316
316
}
@@ -335,7 +335,7 @@ fn snapshot() {
335
335
( r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}" , "(filtered timestamp)" ) ,
336
336
] } , {
337
337
for file in timestamped_files {
338
- let content = fs:: read( format!( "site /{file}" ) ) . unwrap( ) ;
338
+ let content = fs:: read( format!( "public /{file}" ) ) . unwrap( ) ;
339
339
let content = String :: from_utf8_lossy( & content) . into_owned( ) ;
340
340
insta:: assert_snapshot!( content) ;
341
341
}
0 commit comments