Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 1 | package org.jetbrains.dokka |
| 2 | |
| 3 | public class JekyllFormatService(locationService: LocationService, signatureGenerator: SignatureGenerator) |
| 4 | : MarkdownFormatService(locationService, signatureGenerator) { |
Ilya Ryzhenkov | 62cb509 | 2014-07-15 15:54:05 +0400 | [diff] [blame^] | 5 | |
| 6 | override fun link(from: DocumentationNode, to: DocumentationNode): FormatLink = link(from, to, "html") |
| 7 | |
| 8 | override fun appendNodes(to: StringBuilder, |
| 9 | nodes: Iterable<DocumentationNode>) { |
Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 10 | to.appendln("---") |
Ilya Ryzhenkov | 62cb509 | 2014-07-15 15:54:05 +0400 | [diff] [blame^] | 11 | to.appendln("layout: api") |
Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 12 | to.appendln("title: ${nodes.first().name}") |
| 13 | to.appendln("---") |
Ilya Ryzhenkov | 62cb509 | 2014-07-15 15:54:05 +0400 | [diff] [blame^] | 14 | super<MarkdownFormatService>.appendNodes(to, nodes) |
Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 15 | } |
| 16 | } |