aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/JekyllFormatService.kt
blob: 459b5113dfac14aed770f9e5e60ca4eeb0bbd4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.jetbrains.dokka

public class JekyllFormatService(locationService: LocationService,
                                 resolutionService: ResolutionService,
                                 signatureGenerator: LanguageService)
: MarkdownFormatService(locationService, resolutionService, 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)
    }
}