Pipeline-based Static site generator


Keywords
markdown, web, templating, ssg, rust, static-site-generator
Licenses
MIT/Apache-2.0

Documentation

Tempura

Tempura is a pipeline-based Static Site Generator (SSG) written in Rust. You can define pipelines to generate your site from various resources such as Markdown, JSON, plain text, Handlebars templates, pictures, etc.

Installation

Build from source

cargo install tempura

Download binary

You can download a binary archive from releases page.

# Run one of the following to download binary archive
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-apple-darwin.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-unknown-linux-gnu.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-aarch64-unknown-linux-musl.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-pc-windows-msvc.zip
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-unknown-linux-gnu.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-i686-unknown-linux-musl.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-apple-darwin.tar.gz
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-pc-windows-msvc.zip
wget https://github.com/yuma140902/tempura/releases/latest/download/tempura-x86_64-unknown-linux-musl.tar.gz 

Or you can download and install with cargo-binstall.

cargo binstall tempura

Example

yuma14.net

Documentation

https://yuma14.net/tempura-doc/

How to make releases

  1. release/v1.2.3 ใฎใ‚ˆใ†ใชๅๅ‰ใฎใƒ–ใƒฉใƒณใƒใ‚’ๅˆ‡ใ‚‹
  2. Cargo.toml ใฎใƒใƒผใ‚ธใƒงใƒณ็•ชๅทใ‚’ๆ›ดๆ–ฐใ™ใ‚‹
  3. ๆ‰‹ๅ…ƒใง cargo build ใ‚’ๅฎŸ่กŒใ—ใฆ Cargo.lock ใ‚’ๆ›ดๆ–ฐใ™ใ‚‹
  4. Pull Request ใ‚’ไฝœใ‚‹ใ€‚pre-release.yml ใŒๅฎŸ่กŒใ•ใ‚Œใฆ CHANGELOG.md ใŒๆ›ดๆ–ฐใ•ใ‚Œใ‚‹ใ€‚
  5. ใ™ในใฆใฎใƒใ‚งใƒƒใ‚ฏใŒ้€šใ‚Œใฐ Pull Request ใ‚’ใ‚ฏใƒญใƒผใ‚บใ™ใ‚‹ใ€‚release.yml ใŒๅฎŸ่กŒใ•ใ‚Œใฆ crates.io ใจ GitHub ใฎใƒชใƒชใƒผใ‚นใƒšใƒผใ‚ธใซใƒชใƒชใƒผใ‚นใŒไฝœใ‚‰ใ‚Œใ‚‹ใ€‚
  6. ใƒ–ใƒฉใƒณใƒใฏๅ‰Š้™คใ›ใšใซๆฎ‹ใ—ใฆใŠใใ‚‚ใฎใจใ™ใ‚‹