From 3c07bc1966c85de3351602c4e8798fa507c40e49 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Thu, 30 Jul 2020 15:05:06 +0200 Subject: Create navigation search component --- core/src/main/kotlin/pages/RendererSpecificPage.kt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core') 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) -> 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 { -- cgit