aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 16:08:17 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-14 16:08:17 +0400
commit03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247 (patch)
treea54fcba4c3e437f2f871ac60c4ccd6dcd3af42d2
parentf3375a48e593a78faaa167f46cef02c18c1160bb (diff)
downloaddokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.tar.gz
dokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.tar.bz2
dokka-03d0fd4e5a92ef80a17703ac0ed7e69b3bb95247.zip
Render signature with markdown code
-rw-r--r--src/Formats/MarkdownFormatService.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Formats/MarkdownFormatService.kt b/src/Formats/MarkdownFormatService.kt
index 032667dd..27ebb8ce 100644
--- a/src/Formats/MarkdownFormatService.kt
+++ b/src/Formats/MarkdownFormatService.kt
@@ -7,9 +7,10 @@ public class MarkdownFormatService(val locationService: LocationService,
with (to) {
appendln(node.path.map { "[${it.name}](${locationService.relativeLocation(node, it, extension)})" }.joinToString(" / "))
appendln()
- append("# ")
+ appendln("# ${node.name}")
+ appendln("```")
appendln(signatureGenerator.render(node))
- appendln()
+ appendln("```")
appendln(node.doc.summary)
appendln()
for (section in node.doc.sections) {
@@ -18,7 +19,6 @@ public class MarkdownFormatService(val locationService: LocationService,
appendln(section.text)
}
-
appendln("### Members")
appendln("| Name | Signature | Summary |")
appendln("|------|-----------|---------|")