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