A Rust-based static site generator that converts markdown and Rust files into HTML.
cargo run- Build the site (generates HTML inpublic/&public/posts/)./ws- Start web server on http://localhost:1337./watch- Watch source and tests, run tests on changes./watch-posts- Watch posts directory, rebuild site on changes
cargo test- Run all testscargo clippy- Run lintercargo fmt- Format code
cargo run -- --deploy- Deploy to Cloudflare Pages
posts/- Blog posts (.mdor.rsfiles with embedded markdown)pages/- Static pages (.mdfiles)artifacts/- Generated markdown from.rsfilespublic/- Generated HTML output (served by web server)templates/- HTML templates
- Generates markdown from
.rsfiles inposts/→artifacts/ - Converts markdown in
artifacts/to HTML →public/posts/ - Converts markdown in
pages/to HTML →public/ - Removes stale HTML posts
- Post-processes HTML (inserts dates, etc.)
- Generates index page