aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-07-07 13:22:09 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-08 10:05:48 +0200
commit4a360b13c6d2c175aed57d7af878e06ab6a044a7 (patch)
tree85fda012bd95150f97db5653b84daca82f0795d0 /plugins/base/src/main/kotlin
parent7d08a539c1c59e4c5a0cbc26a5fbe363242e7936 (diff)
downloaddokka-4a360b13c6d2c175aed57d7af878e06ab6a044a7.tar.gz
dokka-4a360b13c6d2c175aed57d7af878e06ab6a044a7.tar.bz2
dokka-4a360b13c6d2c175aed57d7af878e06ab6a044a7.zip
Separated search key and display level in search component
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index f8fa3b2e..a950667f 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -605,14 +605,14 @@ open class HtmlRenderer(
.mapIndexed { topLevelIndex, entry ->
if (entry.value.size > 1) {
listOf(
- "{\'name\': \'${entry.key}\', \'index\': \'$topLevelIndex\', \'disabled\': true}"
+ "{\'name\': \'${entry.key}\', \'index\': \'$topLevelIndex\', \'disabled\': true, \'searchKey\':\'${entry.key}\' }"
) + entry.value.mapIndexed { index, subentry ->
- "{\'name\': \'${subentry.value.first}\', \'level\': 1, \'index\': \'$topLevelIndex.$index\', \'description\':\'${subentry.key}\', \'location\':\'${subentry.value.second}\'}"
+ "{\'name\': \'${subentry.value.first}\', \'level\': 1, \'index\': \'$topLevelIndex.$index\', \'description\':\'${subentry.key}\', \'location\':\'${subentry.value.second}\', 'searchKey':'${entry.key}'}"
}
} else {
val subentry = entry.value.single()
listOf(
- "{\'name\': \'${subentry.value.first}\', \'index\': \'$topLevelIndex\', \'description\':\'${subentry.key}\', \'location\':\'${subentry.value.second}\'}"
+ "{\'name\': \'${subentry.value.first}\', \'index\': \'$topLevelIndex\', \'description\':\'${subentry.key}\', \'location\':\'${subentry.value.second}\', 'searchKey':'${entry.key}'}"
)
}
}