Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: we say this work?

+4 -3
+1 -1
CONTRIBUTING.md
··· 31 31 ### Prerequisites 32 32 33 33 - Latest stable version of [Rust](https://www.rust-lang.org/) 34 - - (Optional, for website and examples using Tailwind) [Node.js](https://nodejs.org/) and [pnpm](https://pnpm.io/). 34 + - (Optional, for website, examples using Tailwind and the CLI) [Node.js](https://nodejs.org/) and [pnpm](https://pnpm.io/). 35 35 - We recommend installing pnpm using [Corepack](https://pnpm.io/installation#using-corepack). 36 36 37 37 ### Project structure
+2 -1
crates/maudit-cli/build.rs
··· 12 12 } 13 13 14 14 let js_src_dir = PathBuf::from("src/dev/js"); 15 - let js_dist_dir = js_src_dir.join("dist"); 15 + let out_dir = std::env::var("OUT_DIR").expect("OUT_DIR environment variable not set"); 16 + let js_dist_dir = PathBuf::from(out_dir).join("js"); 16 17 17 18 // Ensure the dist directory exists 18 19 std::fs::create_dir_all(&js_dist_dir).expect("Failed to create dist directory");
+1 -1
crates/maudit-cli/src/dev/server.rs
··· 45 45 fn inject_live_reload_script(html_content: &str, socket_addr: SocketAddr, host: bool) -> String { 46 46 let mut content = html_content.to_string(); 47 47 48 - let script_content = include_str!("./js/dist/client.js").replace( 48 + let script_content = include_str!(concat!(env!("OUT_DIR"), "/js/client.js")).replace( 49 49 "{SERVER_ADDRESS}", 50 50 &format!( 51 51 "{}:{}",