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:
- 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
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.
staticbuild <inputDirectory> <outputDirectory> [--watch]
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