aboutsummaryrefslogtreecommitdiff
path: root/src/Model
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:00:07 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:05:17 +0100
commitc11ae71c3fdad03f1ba0624ca693b34782f1e6e9 (patch)
tree0e1e8bf34e45fe2c332f05c766f4b15a194a2c87 /src/Model
parent902aeb158001473aa2d8d011c1e8e584163c5edd (diff)
downloaddokka-c11ae71c3fdad03f1ba0624ca693b34782f1e6e9.tar.gz
dokka-c11ae71c3fdad03f1ba0624ca693b34782f1e6e9.tar.bz2
dokka-c11ae71c3fdad03f1ba0624ca693b34782f1e6e9.zip
convert doc tags to sections
Diffstat (limited to 'src/Model')
-rw-r--r--src/Model/Content.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Model/Content.kt b/src/Model/Content.kt
index f74a4461..9864ee42 100644
--- a/src/Model/Content.kt
+++ b/src/Model/Content.kt
@@ -132,3 +132,10 @@ public class Content() : ContentBlock() {
val Empty = Content()
}
}
+
+fun javadocSectionDisplayName(sectionName: String?): String? =
+ when(sectionName) {
+ "param" -> "Parameters"
+ "throws", "exception" -> "Exceptions"
+ else -> sectionName?.capitalize()
+ }