A simple, static, HTML site generator inspired by Jekyll.
- Statically compiled
- Write content in markdown
- Built-in web server for previews
- TODO:Templates written in ERB
- TODO:Syntax highlighting code examples
- Download the source:
git clone https://github.com/zzak/mruby-static - Build inside docker with
docker-compose run compile - Install binary to your PATH (i.e.:
mruby/build/<ARCH>/bin/mruby-static) - Create a
site.rbfile (See below). - Generate a post:
mruby-static post:new "The Title Of My Post" - Preview your site:
mruby-static preview:run
This file is used to initialize Static and issue commands. For example:
Static.configuredo |config|
config.site_name="mruby-static"config.root="src/"config.asset_dir="assets/"config.template_dir="templates/"endPlease see Static::Configuration class for more config options.
mruby-static is released under the MIT License.