aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/JekyllFormatService.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Formats/JekyllFormatService.kt')
-rw-r--r--src/Formats/JekyllFormatService.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Formats/JekyllFormatService.kt b/src/Formats/JekyllFormatService.kt
new file mode 100644
index 00000000..19878154
--- /dev/null
+++ b/src/Formats/JekyllFormatService.kt
@@ -0,0 +1,13 @@
+package org.jetbrains.dokka
+
+public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator)
+: MarkdownFormatService(locationService, signatureGenerator) {
+
+ override fun format(nodes: Iterable<DocumentationNode>, to: StringBuilder) {
+ to.appendln("---")
+ to.appendln("layout: post")
+ to.appendln("title: ${nodes.first().name}")
+ to.appendln("---")
+ super<MarkdownFormatService>.format(nodes, to)
+ }
+} \ No newline at end of file