aboutsummaryrefslogtreecommitdiff
path: root/plugins/jekyll
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-10 08:58:05 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-13 14:23:08 +0200
commit663b2f4106347d413242e369f10eb30a27e908c5 (patch)
tree76a78592ea1a8c17b5aba58985176eb5f730151f /plugins/jekyll
parent8c3396d480a35df33d999ca056fae7830ea11025 (diff)
downloaddokka-663b2f4106347d413242e369f10eb30a27e908c5.tar.gz
dokka-663b2f4106347d413242e369f10eb30a27e908c5.tar.bz2
dokka-663b2f4106347d413242e369f10eb30a27e908c5.zip
Support dokkaJekyll and dokkaGfm tasks in new task configuration
Diffstat (limited to 'plugins/jekyll')
-rw-r--r--plugins/jekyll/build.gradle.kts2
-rw-r--r--plugins/jekyll/src/main/kotlin/JekyllPlugin.kt4
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jekyll/build.gradle.kts b/plugins/jekyll/build.gradle.kts
index b47633db..90002466 100644
--- a/plugins/jekyll/build.gradle.kts
+++ b/plugins/jekyll/build.gradle.kts
@@ -12,6 +12,6 @@ publishing {
configureBintrayPublication("jekyllPlugin")
dependencies {
- compileOnly(project(":plugins:base"))
+ implementation(project(":plugins:base"))
implementation(project(":plugins:gfm"))
}
diff --git a/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt b/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt
index f6ea894c..84c22eae 100644
--- a/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt
+++ b/plugins/jekyll/src/main/kotlin/JekyllPlugin.kt
@@ -5,6 +5,7 @@ import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.renderers.PackageListCreator
import org.jetbrains.dokka.base.renderers.RootCreator
import org.jetbrains.dokka.gfm.CommonmarkRenderer
+import org.jetbrains.dokka.gfm.GfmPlugin
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.plugability.DokkaPlugin
@@ -21,7 +22,8 @@ class JekyllPlugin : DokkaPlugin() {
val renderer by extending {
(CoreExtensions.renderer
providing { JekyllRenderer(it) }
- override plugin<DokkaBase>().htmlRenderer)
+ // TODO NOW: Is this correct?
+ override plugin<GfmPlugin>().renderer)
}
val rootCreator by extending {