Skip to content

monman53/monsta

Repository files navigation

MONman Super poor sTAtic site generator.

AsciiDoc based simple static site generator.

Requirements

  • GNU Make

  • Ruby

  • bundler

    • gem install bundler

  • (docker-compose)

Setup

$ bash setup.sh

Usage

.html generation

Prepare .adoc files (or directories) on public directory. (public directory is created by bash setup.sh.)

$ echo hello > public/index.adoc
$ make

Then, .html files will be exported into public directory.

Edit templates and macros (Optional)

You can edit 3 files on src/. Their default contents are copied from src/*_example.rb.

  • src/head.rb

  • src/body.rb

  • src/macros.rb

Start Nginx server (Optional)

$ docker-compose up -d
$ curl http://localhost/

You can find broken links in your website.

$ docker-compose up -d
$ make check

The local web server must be running by docker-compose up -d. This function is only for local web server (the root is http://localhost:80/).