diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..663921b --- /dev/null +++ b/build.gradle @@ -0,0 +1,11 @@ +plugins { + id 'org.asciidoctor.jvm.convert' version '3.3.2' +} + +repositories { + mavenCentral() +} + +asciidoctor { + sourceDir = 'docs/asciidoc' +} \ No newline at end of file diff --git a/docs/asciidoc/manual.asciidoc b/docs/asciidoc/manual.asciidoc new file mode 100644 index 0000000..3bd22a1 --- /dev/null +++ b/docs/asciidoc/manual.asciidoc @@ -0,0 +1,19 @@ += com.jessebrault.ssg +Jesse Brault +v0.1.0 +:toc: +:source-highlighter: rouge + +*com.jessebrault.ssg* is a static site generator written in Groovy, giving access to the entire JVM ecosystem through its templating system. + +== Some Examples + +.Tag Builder +[source,groovy] +---- +def a = tagBuilder.a(href: 'hello.html', 'Hello!') // <1> +assert a == 'Hello!' +out << a // <2> +---- +<1> Create an tag. +<2> Output the tag in the current script block. \ No newline at end of file