aboutsummaryrefslogtreecommitdiff
path: root/plugins/jekyll/src
diff options
context:
space:
mode:
authorMarcin Aman <marcin.aman@gmail.com>2021-07-06 14:33:46 +0200
committerGitHub <noreply@github.com>2021-07-06 14:33:46 +0200
commitacdda6c864a54c9224bc05dc54b7049aac3a92bd (patch)
treec3532593e91c94f3c72a919a6600f1dd6c3cb928 /plugins/jekyll/src
parent0bf1d0f5491a62c56393a06cdfb4168778d9829e (diff)
downloaddokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.tar.gz
dokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.tar.bz2
dokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.zip
Change jekyll links to be .html (#1990)
Diffstat (limited to 'plugins/jekyll/src')
-rw-r--r--plugins/jekyll/src/main/kotlin/JekyllPlugin.kt10
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(