Skip to content

๐Ÿ™…๐Ÿปโ€โ™€๏ธ A static site generator that isn't for you!

Notifications You must be signed in to change notification settings

anthonyec/staticbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

86 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

staticbuild

Bricks

A static site generator that isn't for you!

staticbuild is a static site generator with minimum dependencies and minimum support for anything other than my own projects.

I'm currently using this in the following projects:

Features

  • Small and flat dependency tree, markdown-wasm and mustache.js
  • Automatic page reloading when files change
  • Configuration is just JavaScriptโ„ข๏ธ
  • Markdown files display nicely in GitHub, with images and no ugly front matter table

Why

I was using jekyll for generating my website. But after switching to a new computer, I found it very difficult to setup Ruby, Bundler and all the other junk that was required to get my site running.

So out of frustration I built my own static site generator within a couple of hours. It was messy but it worked. And was actually faster than jekyll because I don't need it to be as flexible.

This version of staticbuild is an attempt to clean things up while still maintaining it's minimalism-ish.

Usage

Building a site

staticbuild <inputDirectory> <outputDirectory> [--watch]

Viewing the site

There isn't a built-in way to serve the website generated by staticbuild. Use a separate HTTP server to view the site locally. I like using http-server.

npx http-server -c-1 ./dist -p 8081

About

๐Ÿ™…๐Ÿปโ€โ™€๏ธ A static site generator that isn't for you!

Resources

Stars

Watchers

Forks

Packages