aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/JekyllFormatService.kt
blob: 9870c8ee98aa65db36583734477bc45b0e4c30d5 (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(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)
    }
}