#static-site-generator #dev #build #init #tiny

app nph-ssg

A tiny static site generator

1 unstable release

0.1.0 Oct 1, 2021

#65 in #init

MIT license

11KB
281 lines

rust-ssg

A simple static site generator written in rust.

Installation

Building from source

Do build from source, you need rust installed. You can install it here.

First, clone the repo.

git clone https://github.com/nph278/rust-ssg.git

Then, run cargo build --release to build out the project. You can install the build on your computer with install target/release/rust-ssg usr/local/bin/rust-ssg.

Usage

Run rust-ssg init in an empty folder to create a website.

You can now build the default site with rust-ssg build.

To start developing, run rust-ssg dev and go to localhost:3000 in you browser.

Dependencies

~2–10MB
~91K SLoC