diff options
Diffstat (limited to 'plugins/jekyll/src/main/kotlin/JekyllPlugin.kt')
-rw-r--r-- | plugins/jekyll/src/main/kotlin/JekyllPlugin.kt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt b/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt index 675dfb39..4dfd21d3 100644 --- a/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt +++ b/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt @@ -1,8 +1,10 @@ package org.jetbrains.dokka.jekyll import org.jetbrains.dokka.CoreExtensions +import org.jetbrains.dokka.base.DokkaBase import org.jetbrains.dokka.base.renderers.PackageListCreator import org.jetbrains.dokka.base.renderers.RootCreator +import org.jetbrains.dokka.base.resolvers.local.DokkaLocationProviderFactory import org.jetbrains.dokka.base.resolvers.shared.RecognizedLinkFormat import org.jetbrains.dokka.gfm.GfmPlugin import org.jetbrains.dokka.gfm.renderer.BriefCommentPreprocessor @@ -18,6 +20,10 @@ class JekyllPlugin : DokkaPlugin() { val jekyllPreprocessors by extensionPoint<PageTransformer>() + private val dokkaBase by lazy { plugin<DokkaBase>() } + + private val gfmPlugin by lazy { plugin<GfmPlugin>() } + val renderer by extending { (CoreExtensions.renderer providing { JekyllRenderer(it) } @@ -37,6 +43,10 @@ class JekyllPlugin : DokkaPlugin() { PackageListCreator(it, RecognizedLinkFormat.DokkaJekyll) } order { after(rootCreator) } } + + val locationProvider by extending { + dokkaBase.locationProviderFactory providing ::DokkaLocationProviderFactory override listOf(gfmPlugin.locationProvider) + } } class JekyllRenderer( |