about

gram is an static site generator based on gradle and thymeleaf.

Setup

build.gradle
apply plugin : "io.github.mxab.gram"

Define first page

Put your main content in the index.adoc in src/content

src/content/index.adoc
= Hello World

This is my site

Build

./gradlew site

The generated static files can be found in build/site

Preview

The preview tasks starts an embedded webserver that hosts your files and reloads the content automatically if something changes

./gradlew preview

Use gradle’s continuous build flag to rerun the build part

./gradlew site -t

For more details check Content and Layouting