diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-04-22 09:32:19 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-30 12:37:10 +0200 |
commit | d41a74c5a5430c152da4f1257343fdbac9181c48 (patch) | |
tree | 418359946a3618a62f0d9364afdebdf36cc531fb /plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | |
parent | 423e7ee17c2cb28d4a34b91231560eff0656ffc0 (diff) | |
download | dokka-d41a74c5a5430c152da4f1257343fdbac9181c48.tar.gz dokka-d41a74c5a5430c152da4f1257343fdbac9181c48.tar.bz2 dokka-d41a74c5a5430c152da4f1257343fdbac9181c48.zip |
Fixed alignment and colors of platform tags. Common tag is always #F4F4F4. Platform tags are now based on target instead of analysis platform
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 12 |
1 files changed, 8 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 65441909..48f1adb8 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -50,8 +50,10 @@ open class HtmlRenderer( ) { div("platform-tagged") { node.platforms.forEach { - div("platform-tag ${it.platformType.name}") { - text(it.platformType.key.toUpperCase()) + val targets = it.targets.joinToString(", ") + div("platform-tag") { + if( targets == "common" ) classes = classes + "common" + text(it.targets.joinToString(", ")) } } div("content") { @@ -151,8 +153,10 @@ open class HtmlRenderer( } td("platform-tagged") { it.platforms.forEach { - div(("platform-tag ${it.platformType.key}")) { - text(it.platformType.key.toUpperCase()) + div(("platform-tag")) { + val targets = it.targets.joinToString(", ") + if( targets == "common" ) classes = classes + "common" + text(it.targets.joinToString(", ")) } } } |