diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-03-26 14:34:09 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-04-08 13:21:22 +0200 |
commit | 7d04ecbfe48125dbcd5e682b2c37fc1f7341822f (patch) | |
tree | 91eca16ebcde0486a4292428095f95c8dd7eaa29 /plugins/base/src/main/kotlin/renderers/html | |
parent | d207b1d1b428f9accc19a5db27ad00a7efff0e19 (diff) | |
download | dokka-7d04ecbfe48125dbcd5e682b2c37fc1f7341822f.tar.gz dokka-7d04ecbfe48125dbcd5e682b2c37fc1f7341822f.tar.bz2 dokka-7d04ecbfe48125dbcd5e682b2c37fc1f7341822f.zip |
Adds samples configuration parameter to include samples sources.
Diffstat (limited to 'plugins/base/src/main/kotlin/renderers/html')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index c2960694..1365fecb 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -10,6 +10,7 @@ import org.jetbrains.dokka.pages.* import org.jetbrains.dokka.plugability.DokkaContext import org.jetbrains.dokka.plugability.plugin import org.jetbrains.dokka.plugability.query +import org.jetbrains.dokka.plugability.querySingle import java.io.File open class HtmlRenderer( @@ -18,7 +19,8 @@ open class HtmlRenderer( private val pageList = mutableListOf<String>() - override val preprocessors = context.plugin<DokkaBase>().query { htmlPreprocessors } + override val preprocessors = context.plugin<DokkaBase>().query { htmlPreprocessors } + + context.plugin<DokkaBase>().querySingle { samplesTransformer } override fun FlowContent.wrapGroup( node: ContentGroup, |