aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2019-11-20 14:40:04 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2019-11-25 16:24:16 +0100
commite9a8dda329390fa5dff310b830ffb95b5f76232e (patch)
tree61207a61d91a43c0d667e5b7793bb6ecc0485606
parent87c65d1bf22dc0dbc6da8d007fafc73382432812 (diff)
downloaddokka-e9a8dda329390fa5dff310b830ffb95b5f76232e.tar.gz
dokka-e9a8dda329390fa5dff310b830ffb95b5f76232e.tar.bz2
dokka-e9a8dda329390fa5dff310b830ffb95b5f76232e.zip
More extension points
-rw-r--r--core/src/main/kotlin/CoreExtensions.kt6
-rw-r--r--core/src/main/kotlin/DokkaGenerator.kt2
2 files changed, 6 insertions, 2 deletions
diff --git a/core/src/main/kotlin/CoreExtensions.kt b/core/src/main/kotlin/CoreExtensions.kt
index 32559d52..6579cab2 100644
--- a/core/src/main/kotlin/CoreExtensions.kt
+++ b/core/src/main/kotlin/CoreExtensions.kt
@@ -1,8 +1,14 @@
package org.jetbrains.dokka
+import org.jetbrains.dokka.Model.transformers.DocumentationNodeTransformer
import org.jetbrains.dokka.plugability.ExtensionPoint
+import org.jetbrains.dokka.renderers.Renderer
+import org.jetbrains.dokka.resolvers.LocationProvider
import org.jetbrains.dokka.transformers.PageNodeTransformer
object CoreExtensions {
+ val nodeTransformer = ExtensionPoint<DocumentationNodeTransformer>(this::class.qualifiedName!!, "nodeTransformer")
val pageTransformer = ExtensionPoint<PageNodeTransformer>(this::class.qualifiedName!!, "pageTransformer")
+ val renderer = ExtensionPoint<Renderer>(this::class.qualifiedName!!, "renderer")
+ val locationProvider = ExtensionPoint<LocationProvider>(this::class.qualifiedName!!, "locationProvider")
} \ No newline at end of file
diff --git a/core/src/main/kotlin/DokkaGenerator.kt b/core/src/main/kotlin/DokkaGenerator.kt
index 129549b9..355b232a 100644
--- a/core/src/main/kotlin/DokkaGenerator.kt
+++ b/core/src/main/kotlin/DokkaGenerator.kt
@@ -73,8 +73,6 @@ class DokkaGenerator(
}
}
- private fun nierzigoj(niczym: String) {}
-
private class DokkaMessageCollector(private val logger: DokkaLogger) : MessageCollector {
override fun clear() {
seenErrors = false