From f515abc3118143f1cac62616c02970b2926427a2 Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Fri, 10 Feb 2023 17:24:47 +0100 Subject: Display source set / platform indicators at all times (#2848) Fixes #2847 --- .../renderers/html/innerTemplating/DefaultTemplateModelFactory.kt | 3 +-- .../main/kotlin/renderers/html/innerTemplating/TemplateModelFactory.kt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/base/src/main/kotlin/renderers/html/innerTemplating') 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, 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, locationProvider: LocationProvider, - shouldRenderSourceSetBubbles: Boolean, content: String ): TemplateMap fun buildSharedModel(): TemplateMap -} \ No newline at end of file +} -- cgit