pichu

Crates.iopichu
lib.rspichu
version0.4.1
created_at2025-06-02 17:01:20.672274+00
updated_at2025-06-08 17:40:07.037294+00
descriptionThe static site generator designed to evolve with your needs.
homepage
repositoryhttps://github.com/bahlo/pichu
max_upload_size
id1698141
size86,197
Arne Bahlo (bahlo)

documentation

README

pichu

CI crates.io docs.rs License

The static site generator designed to evolve with your needs.

Quickstart

Pichu provides the building blocks to build your own static site generator. Parse a directory of Markdown files, including typed frontmatter, and render them individuall and in a collection using your favorite template engine.

Batteries included, but easily swappable: If you've outgrown the default Markdown implementation, you're encouraged to copy-paste the implementation and plug it in instead. Or bring your own!

pichu::glob("content/blog/*.md")?
    .parse_markdown::<Blogpost>()?
    .render_each(render_blog_post, |post| format!("dist/blog/{}/index.html", post.basename))?
    .render_all(render_blog, "dist/blog/index.html")?;

pichu::render_sass("assets/main.scss", "dist/main.css")?;

pichu::copy_dir("static/", "dist/")?;

Features

License

Licensed under either of

at your option.

Commit count: 47

cargo fmt