aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main
diff options
context:
space:
mode:
authorVadim Mishenev <vad-mishenev@yandex.ru>2022-09-20 22:23:52 +0300
committerGitHub <noreply@github.com>2022-09-20 22:23:52 +0300
commite49726f2b9a61278ba3ced9eb2438d925f5d364c (patch)
tree9fe7baac63f1d0bd1d608c887cd80ba92b8f38f6 /plugins/base/src/main
parentc63ec458e94c6236a0002333d852aaa838beaf1e (diff)
downloaddokka-e49726f2b9a61278ba3ced9eb2438d925f5d364c.tar.gz
dokka-e49726f2b9a61278ba3ced9eb2438d925f5d364c.tar.bz2
dokka-e49726f2b9a61278ba3ced9eb2438d925f5d364c.zip
Fix search bar to exclude `(source)` (#2674)
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt b/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt
index dba6cced..b3d40ca0 100644
--- a/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/SearchbarDataInstaller.kt
@@ -106,7 +106,7 @@ private fun flattenToText(node: ContentNode): String {
is ContentComposite -> node.children
.filter { sourceSetRestriction in it.sourceSets }
.flatMap { getContentTextNodes(it, sourceSetRestriction) }
- .takeIf { node.dci.kind != ContentKind.Annotations }
+ .takeIf { node.dci.kind != ContentKind.Annotations && node.dci.kind != ContentKind.Source }
.orEmpty()
else -> emptyList()
}