aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers/html/innerTemplating
diff options
context:
space:
mode:
authorIgnat Beresnev <ignat.beresnev@jetbrains.com>2023-02-10 17:24:47 +0100
committerGitHub <noreply@github.com>2023-02-10 17:24:47 +0100
commitf515abc3118143f1cac62616c02970b2926427a2 (patch)
treefc9db8963f928e4b35a7c27649fc52482d02342b /plugins/base/src/main/kotlin/renderers/html/innerTemplating
parente2351ebcb15a745551fef47c707f0e4e65a707cd (diff)
downloaddokka-f515abc3118143f1cac62616c02970b2926427a2.tar.gz
dokka-f515abc3118143f1cac62616c02970b2926427a2.tar.bz2
dokka-f515abc3118143f1cac62616c02970b2926427a2.zip
Display source set / platform indicators at all times (#2848)
Fixes #2847
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/html/innerTemplating')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/innerTemplating/DefaultTemplateModelFactory.kt3
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt3
2 files changed, 2 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/innerTemplating/DefaultTemplateModelFactory.kt b/plugins/base/src/main/kotlin/renderers/html/innerTemplating/DefaultTemplateModelFactory.kt
index 6c746b37..3437271a 100644
--- a/plugins/base/src/main/kotlin/renderers/html/innerTemplating/DefaultTemplateModelFactory.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/innerTemplating/DefaultTemplateModelFactory.kt
@@ -40,7 +40,6 @@ class DefaultTemplateModelFactory(val context: DokkaContext) : TemplateModelFact
page: PageNode,
resources: List<String>,
locationProvider: LocationProvider,
- shouldRenderSourceSetBubbles: Boolean,
content: String
): TemplateMap {
val path = locationProvider.resolve(page)
@@ -66,7 +65,7 @@ class DefaultTemplateModelFactory(val context: DokkaContext) : TemplateModelFact
}
mapper["template_cmd"] = TemplateDirective(context.configuration, pathToRoot)
- if (shouldRenderSourceSetBubbles && page is ContentPage) {
+ if (page is ContentPage) {
val sourceSets = page.content.withDescendants()
.flatMap { it.sourceSets }
.distinct()
diff --git a/plugins/base/src/main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt b/plugins/base/src/main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt
index ceecf201..0d4c957e 100644
--- a/plugins/base/src/main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt
@@ -8,9 +8,8 @@ interface TemplateModelFactory {
page: PageNode,
resources: List<String>,
locationProvider: LocationProvider,
- shouldRenderSourceSetBubbles: Boolean,
content: String
): TemplateMap
fun buildSharedModel(): TemplateMap
-} \ No newline at end of file
+}