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.rb
file (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.configure do |config|
config.site_name = "mruby-static"
config.root = "src/"
config.asset_dir = "assets/"
config.template_dir = "templates/"
end
Please see Static::Configuration
class for more config options.
mruby-static is released under the MIT License.