blob: 77a0bb65ea0724e9a7e9eb48932416a89ed165e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.jetbrains.dokka
public class TextFormatService(val signatureGenerator: LanguageService) : FormatService {
override val extension: String = "txt"
override fun appendNodes(to: StringBuilder,
nodes: Iterable<DocumentationNode>) {
for (node in nodes) {
with (to) {
appendln(signatureGenerator.render(node))
appendln()
appendln(node.doc.summary)
for (n in 0..node.doc.summary.length())
append("=")
for ((label,section) in node.doc.sections) {
appendln(label)
appendln(section.text)
}
}
}
}
override fun appendOutline(to: StringBuilder, nodes: Iterable<DocumentationNode>) {
}
}
|