/// copies asset files to dst directory.
copies asset files to dst directory.
copies asset files to dst directory .
pub fn copy_assets(theme: &str, dir: &Path) -> Result<(), Error> {
    #[allow(clippy::vec_init_then_push)]
    for (n, s) in match theme {
        "documentation" => {
            include_static_file!("documentation", "css/index.css", "robots.txt")
        }
        _ => include_static_file!("blog", "css/index.css", "robots.txt"),
    } {
        let dst = dir.join(n);
        write_entry(&s, &dst)?;
    }
    Ok(())
}
pub fn copy_assets ( theme : & str , dir : & Path ) -> Result < ( ) , Error > { # [ allow ( clippy vec_init_then_push ) ] for ( n , s ) in match theme { " " => { include_static_file ! ( " " " " " " ) } _ => include_static_file ! ( " " " " " " ) , } { let dst = dir . join ( n ) ; write_entry ( & s , & dst ) ? ; } Ok ( ( ) ) }
copies asset files to dst directory.
copies asset files to dst directory .
theme
&str
dir
&Path