aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/CoreExtensions.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-06 15:51:07 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-12 13:33:10 +0100
commit1e0271e4e2888022f2ac93366c397d7315008c45 (patch)
treefa6c9726fb0b2dbb0a7eebfa4a1b968164f14d9a /core/src/main/kotlin/CoreExtensions.kt
parent2a60f8adbab66e7b671949960c7cd90ea86992d7 (diff)
downloaddokka-1e0271e4e2888022f2ac93366c397d7315008c45.tar.gz
dokka-1e0271e4e2888022f2ac93366c397d7315008c45.tar.bz2
dokka-1e0271e4e2888022f2ac93366c397d7315008c45.zip
page merger strategy
Diffstat (limited to 'core/src/main/kotlin/CoreExtensions.kt')
-rw-r--r--core/src/main/kotlin/CoreExtensions.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/kotlin/CoreExtensions.kt b/core/src/main/kotlin/CoreExtensions.kt
index 8c66b41e..18cde210 100644
--- a/core/src/main/kotlin/CoreExtensions.kt
+++ b/core/src/main/kotlin/CoreExtensions.kt
@@ -9,6 +9,7 @@ import org.jetbrains.dokka.transformers.descriptors.DescriptorToDocumentationTra
import org.jetbrains.dokka.transformers.documentation.DocumentationNodeMerger
import org.jetbrains.dokka.transformers.documentation.DocumentationNodeTransformer
import org.jetbrains.dokka.transformers.documentation.DocumentationToPageTranslator
+import org.jetbrains.dokka.transformers.pages.PageMergerStrategy
import org.jetbrains.dokka.transformers.pages.PageNodeTransformer
import org.jetbrains.dokka.transformers.psi.PsiToDocumentationTranslator
import kotlin.reflect.KProperty
@@ -29,6 +30,8 @@ object CoreExtensions {
val locationProviderFactory by coreExtension<LocationProviderFactory>()
val outputWriter by coreExtension<OutputWriter>()
val renderer by coreExtension<Renderer>()
+ val fileExtension by coreExtension<String>()
+ val pageMergerStrategy by coreExtension<PageMergerStrategy>()
private fun <T: Any> coreExtension() = object {
operator fun provideDelegate(thisRef: CoreExtensions, property: KProperty<*>): Lazy<ExtensionPoint<T>> =