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 --- plugins/base/api/base.api | 4 +-- .../src/main/kotlin/renderers/html/HtmlRenderer.kt | 29 ++++++++++------------ .../innerTemplating/DefaultTemplateModelFactory.kt | 3 +-- .../html/innerTemplating/TemplateModelFactory.kt | 3 +-- .../renderers/html/shouldRenderSourceSetBubbles.kt | 2 +- 5 files changed, 18 insertions(+), 23 deletions(-) (limited to 'plugins') diff --git a/plugins/base/api/base.api b/plugins/base/api/base.api index 5ba42101..f529b0ee 100644 --- a/plugins/base/api/base.api +++ b/plugins/base/api/base.api @@ -621,7 +621,7 @@ public final class org/jetbrains/dokka/base/renderers/html/command/consumers/Res public final class org/jetbrains/dokka/base/renderers/html/innerTemplating/DefaultTemplateModelFactory : org/jetbrains/dokka/base/renderers/html/innerTemplating/TemplateModelFactory { public fun (Lorg/jetbrains/dokka/plugability/DokkaContext;)V - public fun buildModel (Lorg/jetbrains/dokka/pages/PageNode;Ljava/util/List;Lorg/jetbrains/dokka/base/resolvers/local/LocationProvider;ZLjava/lang/String;)Ljava/util/Map; + public fun buildModel (Lorg/jetbrains/dokka/pages/PageNode;Ljava/util/List;Lorg/jetbrains/dokka/base/resolvers/local/LocationProvider;Ljava/lang/String;)Ljava/util/Map; public fun buildSharedModel ()Ljava/util/Map; public final fun getContext ()Lorg/jetbrains/dokka/plugability/DokkaContext; } @@ -660,7 +660,7 @@ public final class org/jetbrains/dokka/base/renderers/html/innerTemplating/HtmlT } public abstract interface class org/jetbrains/dokka/base/renderers/html/innerTemplating/TemplateModelFactory { - public abstract fun buildModel (Lorg/jetbrains/dokka/pages/PageNode;Ljava/util/List;Lorg/jetbrains/dokka/base/resolvers/local/LocationProvider;ZLjava/lang/String;)Ljava/util/Map; + public abstract fun buildModel (Lorg/jetbrains/dokka/pages/PageNode;Ljava/util/List;Lorg/jetbrains/dokka/base/resolvers/local/LocationProvider;Ljava/lang/String;)Ljava/util/Map; public abstract fun buildSharedModel ()Ljava/util/Map; } diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 73fd07e0..b4d98b58 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -41,7 +41,7 @@ open class HtmlRenderer( setupSharedModel(templateModelMerger.invoke(templateModelFactories) { buildSharedModel() }) } - private var shouldRenderSourceSetBubbles: Boolean = false + private var shouldRenderSourceSetTabs: Boolean = false override val preprocessors = context.plugin().query { htmlPreprocessors } @@ -175,7 +175,7 @@ open class HtmlRenderer( pageContext: ContentPage, extra: PropertyContainer = PropertyContainer.empty(), styles: Set