aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-04-22 09:32:19 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-30 12:37:10 +0200
commitd41a74c5a5430c152da4f1257343fdbac9181c48 (patch)
tree418359946a3618a62f0d9364afdebdf36cc531fb /plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
parent423e7ee17c2cb28d4a34b91231560eff0656ffc0 (diff)
downloaddokka-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.kt12
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(", "))
}
}
}