Started docs.

This commit is contained in:
JesseBrault0709 2023-02-20 11:53:02 +01:00
parent 3dcc25dff7
commit 107f394b82
2 changed files with 30 additions and 0 deletions

11
build.gradle Normal file
View File

@ -0,0 +1,11 @@
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
}
repositories {
mavenCentral()
}
asciidoctor {
sourceDir = 'docs/asciidoc'
}

View File

@ -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 == '<a href="hello.html">Hello!</a>'
out << a // <2>
----
<1> Create an <a> tag.
<2> Output the tag in the current script block.