blob: dc18a6e42d311e46f56ec23e9448865c12a42397 [file] [log] [blame]
Ilya Ryzhenkoveeb42e92014-07-14 22:29:34 +04001package org.jetbrains.dokka
2
kisenka782a0b32014-10-10 16:12:57 +04003public open class JekyllFormatService(locationService: LocationService,
Ilya Ryzhenkov455d74a2014-09-19 22:25:27 +03004 signatureGenerator: LanguageService)
Ilya Ryzhenkovd6fd0452014-10-03 20:20:02 +04005: MarkdownFormatService(locationService, signatureGenerator) {
Ilya Ryzhenkov62cb5092014-07-15 15:54:05 +04006
7 override fun link(from: DocumentationNode, to: DocumentationNode): FormatLink = link(from, to, "html")
8
Ilya Ryzhenkovd6fd0452014-10-03 20:20:02 +04009 override fun appendNodes(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) {
Ilya Ryzhenkoveeb42e92014-07-14 22:29:34 +040010 to.appendln("---")
Ilya Ryzhenkov62cb5092014-07-15 15:54:05 +040011 to.appendln("layout: api")
Ilya Ryzhenkoveeb42e92014-07-14 22:29:34 +040012 to.appendln("title: ${nodes.first().name}")
13 to.appendln("---")
Ilya Ryzhenkovd6fd0452014-10-03 20:20:02 +040014 super<MarkdownFormatService>.appendNodes(location, to, nodes)
Ilya Ryzhenkoveeb42e92014-07-14 22:29:34 +040015 }
16}