Started docs.
This commit is contained in:
parent
3dcc25dff7
commit
107f394b82
11
build.gradle
Normal file
11
build.gradle
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
plugins {
|
||||||
|
id 'org.asciidoctor.jvm.convert' version '3.3.2'
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
asciidoctor {
|
||||||
|
sourceDir = 'docs/asciidoc'
|
||||||
|
}
|
19
docs/asciidoc/manual.asciidoc
Normal file
19
docs/asciidoc/manual.asciidoc
Normal 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.
|
Loading…
Reference in New Issue
Block a user