aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-07-16 12:34:27 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-16 15:53:58 +0200
commit47a145f68b716bf06630fbfc0c191d72062d2937 (patch)
tree6a1d3c97a22943859fcf963628d99734f20e3034 /plugins/base
parent04cf1cdd3a909fa62e5ffda5b7d04695c749177e (diff)
downloaddokka-47a145f68b716bf06630fbfc0c191d72062d2937.tar.gz
dokka-47a145f68b716bf06630fbfc0c191d72062d2937.tar.bz2
dokka-47a145f68b716bf06630fbfc0c191d72062d2937.zip
Fix signature duplication when filtering inherited functions
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt6
-rw-r--r--plugins/base/src/main/resources/dokka/styles/style.css1
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 5180d4fc..02f4b54e 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -62,9 +62,9 @@ open class DefaultPageCreator(
open fun pageForTypeAlias(t: DTypeAlias) = MemberPageNode(t.name, contentForTypeAlias(t), setOf(t.dri), t)
private val WithScope.filteredFunctions: List<DFunction>
- get() = functions.flatMap { dFunction ->
- dFunction.sourceSets.mapNotNull { sourceSetData ->
- dFunction.takeIf { it.extra[InheritedFunction]?.isInherited(sourceSetData) != true }
+ get() = functions.mapNotNull { function ->
+ function.takeIf {
+ it.sourceSets.any { sourceSet -> it.extra[InheritedFunction]?.isInherited(sourceSet) != true }
}
}
diff --git a/plugins/base/src/main/resources/dokka/styles/style.css b/plugins/base/src/main/resources/dokka/styles/style.css
index b5c11317..7e33c6bb 100644
--- a/plugins/base/src/main/resources/dokka/styles/style.css
+++ b/plugins/base/src/main/resources/dokka/styles/style.css
@@ -834,7 +834,6 @@ td.content {
.inner-brief-with-platform-tags {
display: inline-block;
- width: 100%;
}
.tabs-section-body .brief-with-platform-tags {