article {
header {
documentTitle { "AsciiDoc DSL for Kotlin" }
author {
fullName { "Stefan Schrass" }
eMail { "[email protected]" }
}
revision {
number { "v0.1.1" }
date { "2021-11-27" }
remark { "5" }
}
description { "A yet very shallow AsciiDoc DSL for Kotlin." }
keywords { listOf("AsciiDoc", "DSL", "Kotlin") }
metadata { "status" to "incubating" }
flag { "hide-uri-scheme" }
}
paragraph { +"first Paragraph" }
paragraph { +"second Paragraph" }
sectionNumbers { true }
section {
title { "A numbered Section" }
paragraph { +"Some Text" }
subSection {
title { "SubSection title" }
list {
+"A thing"
+"Another thing"
+listOf("first thing", "second thing")
}
}
}
sectionNumbers { false }
section {
title { "Unnumbered Section" }
paragraph { +"Some Text" }
}
}
.render()
will produce
= AsciiDoc DSL for Kotlin
Stefan Schrass <stefan[email protected]>
v0.1.1, 2021-11-27:5
:description: A yet very shallow AsciiDoc DSL for Kotlin.
:keywords: AsciiDoc, DSL, Kotlin
:status: incubating
:hide-uri-scheme:
first Paragraph
second Paragraph
:sectnums:
== A numbered Section
Some Text
=== SubSection title
* A thing
* Another thing
* first thing
* second thing
:sectnums!:
== Unnumbered Section
Some Text