package org.jetbrains.dokka import com.google.inject.Inject open class JekyllFormatService @Inject constructor(locationService: LocationService, signatureGenerator: LanguageService, linkExtension: String = "md") : MarkdownFormatService(locationService, signatureGenerator, linkExtension) { override fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable) { to.appendln("---") appendFrontMatter(nodes, to) to.appendln("---") to.appendln("") super.appendNodes(location, to, nodes) } protected open fun appendFrontMatter(nodes: Iterable, to: StringBuilder) { to.appendln("title: ${getPageTitle(nodes)}") } }