16 releases
0.5.2 | Sep 4, 2024 |
---|---|
0.5.0 | Dec 18, 2023 |
0.4.3 | Nov 10, 2023 |
0.2.2 | Jul 11, 2023 |
0.2.0 | Oct 31, 2022 |
#96 in Template engine
623 downloads per month
78KB
1.5K
SLoC
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
- Repo: https://github.com/yuma140902/yuma14net-old/
- Generated website: https://old.yuma14.net/
Documentation
https://yuma14.net/tempura-doc/
How to make releases
release/v1.2.3
のような名前のブランチを切るCargo.toml
のバージョン番号を更新する- 手元で
cargo build
を実行してCargo.lock
を更新する - Pull Request を作る。pre-release.yml が実行されて CHANGELOG.md が更新される。
- すべてのチェックが通れば Pull Request をクローズする。release.yml が実行されて crates.io と GitHub のリリースページにリリースが作られる。
- ブランチは削除せずに残しておくものとする
Dependencies
~12–22MB
~318K SLoC