diff options
Diffstat (limited to 'core/src/main/kotlin')
-rw-r--r-- | core/src/main/kotlin/pages/RendererSpecificPage.kt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/kotlin/pages/RendererSpecificPage.kt b/core/src/main/kotlin/pages/RendererSpecificPage.kt index 85e6d530..d7f4491a 100644 --- a/core/src/main/kotlin/pages/RendererSpecificPage.kt +++ b/core/src/main/kotlin/pages/RendererSpecificPage.kt @@ -1,8 +1,12 @@ package org.jetbrains.dokka.pages +import org.jetbrains.dokka.links.DRI +import org.jetbrains.dokka.model.DisplaySourceSet import org.jetbrains.dokka.renderers.Renderer import kotlin.reflect.KClass +typealias LocationResolver = (DRI, Set<DisplaySourceSet>) -> String + interface RendererSpecificPage : PageNode { val strategy: RenderingStrategy } @@ -29,6 +33,7 @@ sealed class RenderingStrategy { class Callback(val instructions: Renderer.(PageNode) -> String): RenderingStrategy() data class Copy(val from: String) : RenderingStrategy() data class Write(val text: String) : RenderingStrategy() + data class LocationResolvableWrite(val contentToResolve: (LocationResolver) -> String) : RenderingStrategy() object DoNothing : RenderingStrategy() companion object { |