aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/RendererSpecificPage.kt
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-07-30 15:05:06 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-21 15:40:12 +0200
commit3c07bc1966c85de3351602c4e8798fa507c40e49 (patch)
treeef39ea18a4ec699e4cab9dc55489b43fccb1e247 /core/src/main/kotlin/pages/RendererSpecificPage.kt
parentc2b02c1fc17b839075b7cb6fd42498a519473fae (diff)
downloaddokka-3c07bc1966c85de3351602c4e8798fa507c40e49.tar.gz
dokka-3c07bc1966c85de3351602c4e8798fa507c40e49.tar.bz2
dokka-3c07bc1966c85de3351602c4e8798fa507c40e49.zip
Create navigation search component
Diffstat (limited to 'core/src/main/kotlin/pages/RendererSpecificPage.kt')
-rw-r--r--core/src/main/kotlin/pages/RendererSpecificPage.kt5
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 {