Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 1 | package org.jetbrains.dokka |
| 2 | |
Ilya Ryzhenkov | 455d74a | 2014-09-19 22:25:27 +0300 | [diff] [blame] | 3 | public class JekyllFormatService(locationService: LocationService, |
Ilya Ryzhenkov | 455d74a | 2014-09-19 22:25:27 +0300 | [diff] [blame] | 4 | signatureGenerator: LanguageService) |
Ilya Ryzhenkov | d6fd045 | 2014-10-03 20:20:02 +0400 | [diff] [blame] | 5 | : MarkdownFormatService(locationService, signatureGenerator) { |
Ilya Ryzhenkov | 62cb509 | 2014-07-15 15:54:05 +0400 | [diff] [blame] | 6 | |
| 7 | override fun link(from: DocumentationNode, to: DocumentationNode): FormatLink = link(from, to, "html") |
| 8 | |
Ilya Ryzhenkov | d6fd045 | 2014-10-03 20:20:02 +0400 | [diff] [blame] | 9 | override fun appendNodes(location: Location, to: StringBuilder, 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 | d6fd045 | 2014-10-03 20:20:02 +0400 | [diff] [blame] | 14 | super<MarkdownFormatService>.appendNodes(location, to, nodes) |
Ilya Ryzhenkov | eeb42e9 | 2014-07-14 22:29:34 +0400 | [diff] [blame] | 15 | } |
| 16 | } |