@@ -297,7 +297,7 @@ fn copy_dir(source: impl AsRef<Path>, dest: impl AsRef<Path>) -> Result<(), io::
297297}
298298
299299pub fn main ( ) -> eyre:: Result < ( ) > {
300- let blog = Generator :: new ( "site " , "content" ) ?;
300+ let blog = Generator :: new ( "public " , "content" ) ?;
301301
302302 blog. render ( ) ?;
303303
@@ -306,11 +306,11 @@ pub fn main() -> eyre::Result<()> {
306306
307307#[ test]
308308fn 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 " ) ) ;
310310 main ( ) . unwrap ( ) ;
311311 let timestamped_files = [ "releases.json" , "feed.xml" ] ;
312312 let inexplicably_non_deterministic_files = [ "images/2023-08-rust-survey-2022/experiences.png" ] ;
313- insta:: glob!( ".." , "site /**/*" , |path| {
313+ insta:: glob!( ".." , "public /**/*" , |path| {
314314 if path. is_dir( ) {
315315 return ;
316316 }
@@ -335,7 +335,7 @@ fn snapshot() {
335335 ( r"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+\d{2}:\d{2}" , "(filtered timestamp)" ) ,
336336 ] } , {
337337 for file in timestamped_files {
338- let content = fs:: read( format!( "site /{file}" ) ) . unwrap( ) ;
338+ let content = fs:: read( format!( "public /{file}" ) ) . unwrap( ) ;
339339 let content = String :: from_utf8_lossy( & content) . into_owned( ) ;
340340 insta:: assert_snapshot!( content) ;
341341 }
0 commit comments