-
Install jbake (
sdk install jbake
) -
Initialize in specific folder with groovy templates
jbake -i src/jbake -t groovy
-
Bake (compile <input> to <output> folder):
jbake -b src/jbake build/jbake
-
Serve
jbake -s build/jbake
-
Live preview without installing jbake can be done by running
server.groovy
or running following snippet#!/usr/bin/env groovy @Grapes([ @Grab('io.ratpack:ratpack-groovy:1.4.4'), @Grab(group='org.slf4j', module='slf4j-api', version='1.7.22'), @Grab(group='org.slf4j', module='slf4j-simple', version='1.7.22') ]) import static ratpack.groovy.Groovy.ratpack ratpack { handlers { files { f -> f.dir('build/jbake').indexFiles('index.html') } } }
-
Integration is in src/main/groovy/pl/trojmiastojug/build/MeetupIntegration.groovy
-
It’s run in meetupEvents gradle tasks
-
Meetup key is required for successful integration (https://secure.meetup.com/meetup_api/key/)
-
Pass it overt to gradle through jvm arguments
gradle -PmeetupKey=$MEETUP_KEY
-
-
With github pages: https://github.com/danhyun/blog/