diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-01-16 16:58:57 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-02-06 10:53:43 +0100 |
commit | 6085f6acaf90c1a82b1249878c70a871a52c64e5 (patch) | |
tree | d54023fcda65b856ccb0edfe301246cf66398d1f /core/src/main/kotlin/pages/PageBuilder.kt | |
parent | 1a8c57abd0bf21e53d580f166bedbf2fa6988db1 (diff) | |
download | dokka-6085f6acaf90c1a82b1249878c70a871a52c64e5.tar.gz dokka-6085f6acaf90c1a82b1249878c70a871a52c64e5.tar.bz2 dokka-6085f6acaf90c1a82b1249878c70a871a52c64e5.zip |
Resolved problems with doubling comments
Diffstat (limited to 'core/src/main/kotlin/pages/PageBuilder.kt')
-rw-r--r-- | core/src/main/kotlin/pages/PageBuilder.kt | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/core/src/main/kotlin/pages/PageBuilder.kt b/core/src/main/kotlin/pages/PageBuilder.kt index ce32645d..e8930fae 100644 --- a/core/src/main/kotlin/pages/PageBuilder.kt +++ b/core/src/main/kotlin/pages/PageBuilder.kt @@ -60,9 +60,12 @@ class DefaultPageBuilder( header(2) { text("SuperInterfaces") } linkTable(it) } - c.commentsData.forEach { - it.children.forEach { - header(3) { text(it.toHeaderString()) } + c.platformInfo.forEach { platformInfo -> + platformInfo.documentationNode.children.forEach { + header(3) { + text(it.toHeaderString()) + text("[${platformInfo.platformData.joinToString(", ") { it.platformType.name }}]") + } comment(it.root) text("\n") } @@ -86,10 +89,19 @@ class DefaultPageBuilder( private fun contentForFunction(f: Function) = group(f) { header(1) { text(f.name) } signature(f) - f.commentsData.forEach { it.children.forEach { comment(it.root) } } + f.platformInfo.forEach { platformInfo -> + platformInfo.documentationNode.children.forEach { + header(3) { + text(it.toHeaderString()) + text("[${platformInfo.platformData.joinToString(", ") { it.platformType.name }}]") + } + comment(it.root) + text("\n") + } + } block("Parameters", 2, ContentKind.Parameters, f.children, f.platformData) { text(it.name ?: "<receiver>") - it.commentsData.forEach { it.children.forEach { comment(it.root) } } + it.platformInfo.forEach { it.documentationNode.children.forEach { comment(it.root) } } } } |