aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/JekyllFormatService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2014-12-29 15:32:15 +0100
committerDmitry Jemerov <yole@jetbrains.com>2014-12-29 15:32:15 +0100
commit8f3802672c6a07e9f5f949ef0b5482383b467cb6 (patch)
treeded0068139799f798d20aa917c065a2568254e1e /src/Formats/JekyllFormatService.kt
parentbadba07c1d151ff5a9cf623abecf7f2c906b5931 (diff)
downloaddokka-8f3802672c6a07e9f5f949ef0b5482383b467cb6.tar.gz
dokka-8f3802672c6a07e9f5f949ef0b5482383b467cb6.tar.bz2
dokka-8f3802672c6a07e9f5f949ef0b5482383b467cb6.zip
layout: api is specific to Kotlin web site, don't generate it in regular Jekyll output
Diffstat (limited to 'src/Formats/JekyllFormatService.kt')
-rw-r--r--src/Formats/JekyllFormatService.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Formats/JekyllFormatService.kt b/src/Formats/JekyllFormatService.kt
index 5179b37d..93861113 100644
--- a/src/Formats/JekyllFormatService.kt
+++ b/src/Formats/JekyllFormatService.kt
@@ -8,10 +8,13 @@ public open class JekyllFormatService(locationService: LocationService,
override fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) {
to.appendln("---")
- to.appendln("layout: api")
- to.appendln("title: ${nodes.first().name}")
+ appendFrontMatter(nodes, to)
to.appendln("---")
to.appendln("")
super<MarkdownFormatService>.appendNodes(location, to, nodes)
}
+
+ protected open fun appendFrontMatter(nodes: Iterable<DocumentationNode>, to: StringBuilder) {
+ to.appendln("title: ${nodes.first().name}")
+ }
} \ No newline at end of file