diff options
author | Filip Zybała <fzybala@virtuslab.com> | 2020-07-07 13:22:09 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-07-08 10:05:48 +0200 |
commit | 4a360b13c6d2c175aed57d7af878e06ab6a044a7 (patch) | |
tree | 85fda012bd95150f97db5653b84daca82f0795d0 /plugins/base/src/main/kotlin | |
parent | 7d08a539c1c59e4c5a0cbc26a5fbe363242e7936 (diff) | |
download | dokka-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.kt | 6 |
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}'}" ) } } |