aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-05-07 09:38:00 +0200
committerKamil Doległo <kamilok1965@users.noreply.github.com>2020-05-07 14:00:13 +0200
commit696533430fee5a92c32d5a2b95f14ce072b4264a (patch)
treedb14907593a13961eb3bc672864294de975cf835 /plugins/base/src/main
parent652fd907f5bef6dfb87b545158c34d84f2902f06 (diff)
downloaddokka-696533430fee5a92c32d5a2b95f14ce072b4264a.tar.gz
dokka-696533430fee5a92c32d5a2b95f14ce072b4264a.tar.bz2
dokka-696533430fee5a92c32d5a2b95f14ce072b4264a.zip
Platform tag is created only if content has one platform. Adjusted css: deleted animation. Div should handle multiple signatures.
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index c53b1b6d..4f0c1e55 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -141,20 +141,22 @@ open class HtmlRenderer(
else -> div { it.build(this, pageContext, platformRestriction) }
}
}
- if (ContentKind.shouldBePlatformTagged(node.dci.kind)) {
+ if (ContentKind.shouldBePlatformTagged(node.dci.kind) && node.platforms.size == 1) {
createPlatformTags(node)
}
}
}
it.filter { it.dci.kind == ContentKind.Symbol }.takeIf { it.isNotEmpty() }?.let {
div("signature-subrow") {
- div("signature"){
- it.first().build(this, pageContext, platformRestriction)
+ div("signatures"){
+ it.forEach {
+ it.build(this, pageContext, platformRestriction)
+ }
}
}
}
}
- }
+ }
}
private fun FlowContent.createPlatformTags( node: ContentNode ) {