diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-10 08:58:05 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-07-13 14:23:08 +0200 |
commit | 663b2f4106347d413242e369f10eb30a27e908c5 (patch) | |
tree | 76a78592ea1a8c17b5aba58985176eb5f730151f | |
parent | 8c3396d480a35df33d999ca056fae7830ea11025 (diff) | |
download | dokka-663b2f4106347d413242e369f10eb30a27e908c5.tar.gz dokka-663b2f4106347d413242e369f10eb30a27e908c5.tar.bz2 dokka-663b2f4106347d413242e369f10eb30a27e908c5.zip |
Support dokkaJekyll and dokkaGfm tasks in new task configuration
-rw-r--r-- | plugins/gfm/build.gradle.kts | 2 | ||||
-rw-r--r-- | plugins/jekyll/build.gradle.kts | 2 | ||||
-rw-r--r-- | plugins/jekyll/src/main/kotlin/JekyllPlugin.kt | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/plugins/gfm/build.gradle.kts b/plugins/gfm/build.gradle.kts index 16b318fb..fac2c1c0 100644 --- a/plugins/gfm/build.gradle.kts +++ b/plugins/gfm/build.gradle.kts @@ -12,7 +12,7 @@ publishing { configureBintrayPublication("gfmPlugin") dependencies { - compileOnly(project(":plugins:base")) + implementation(project(":plugins:base")) testImplementation(project(":plugins:base")) testImplementation(project(":plugins:base:test-utils")) } 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 { |