aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-03-03 23:38:23 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-03-04 14:28:14 +0100
commitd08591dea709917553c0d6de024820bb29b328fb (patch)
tree5844f98629d654ffb4fbaa0471484b149b487361 /plugins/base/src/main/kotlin/translators
parent156396f7520b3ac45e37068d6b72087008322cbe (diff)
downloaddokka-d08591dea709917553c0d6de024820bb29b328fb.tar.gz
dokka-d08591dea709917553c0d6de024820bb29b328fb.tar.bz2
dokka-d08591dea709917553c0d6de024820bb29b328fb.zip
Platform dependent hints for renderer
Diffstat (limited to 'plugins/base/src/main/kotlin/translators')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
index eb422920..0c08241f 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/PageContentBuilder.kt
@@ -232,6 +232,20 @@ open class PageContentBuilder(
block: DocumentableContentBuilder.() -> Unit
): ContentGroup = contentFor(dri, platformData, kind, styles, extras, block)
+ fun platformDependentHint(
+ dri: DRI = mainDRI,
+ platformData: Set<PlatformData> = mainPlatformData,
+ kind: Kind = ContentKind.Main,
+ styles: Set<Style> = mainStyles,
+ extras: Set<Extra> = mainExtras,
+ block: DocumentableContentBuilder.() -> Unit
+ ) {
+ contents += PlatformHintedContent(
+ buildGroup(dri, platformData, kind, styles, extras, block),
+ platformData
+ )
+ }
+
protected fun createText(
text: String,
kind: Kind,