blob: dc18a6e42d311e46f56ec23e9448865c12a42397 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.jetbrains.dokka
public open class JekyllFormatService(locationService: LocationService,
signatureGenerator: LanguageService)
: MarkdownFormatService(locationService, signatureGenerator) {
override fun link(from: DocumentationNode, to: DocumentationNode): FormatLink = link(from, to, "html")
override fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) {
to.appendln("---")
to.appendln("layout: api")
to.appendln("title: ${nodes.first().name}")
to.appendln("---")
super<MarkdownFormatService>.appendNodes(location, to, nodes)
}
}
|