Crates.io | cheetah |
lib.rs | cheetah |
version | 0.2.3 |
source | src |
created_at | 2023-12-23 22:49:34.805546 |
updated_at | 2024-07-17 21:00:19.446104 |
description | An extremely fast and flexible static site generator. |
homepage | https://cheetah.farthergate.com |
repository | https://github.com/aleksrutins/cheetah |
max_upload_size | |
id | 1079319 |
size | 1,962,735 |
A static site generator written in Rust.
The recommended way to install Cheetah is by creating a flake.nix
to build your site.
Here's a simple one to get you started (based on the one used for Cheetah's docs):
{
inputs = {
cheetah.url = "github:aleksrutins/cheetah";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, utils, cheetah }:
let config = {
# Pass your configuration options here.
};
in utils.lib.eachDefaultSystem (system: {
packages.default = (cheetah.buildSite.${system} ./. {
name = "site";
inherit config;
});
devShells.default = (cheetah.createDevShell.${system} { inherit config; });
});
}
To build your site, just use nix build .
- see <workflows/docs.yml> for an example of how to use this in CI.
Alternatively, you can use it as a normal binary.
Either install it as a flake using Nix (recommended):
nix profile install github:aleksrutins/cheetah
Or install it from Cargo:
cargo install cheetah
See the website.