aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/renderers/html
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-03-26 14:34:09 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-08 13:21:22 +0200
commit7d04ecbfe48125dbcd5e682b2c37fc1f7341822f (patch)
tree91eca16ebcde0486a4292428095f95c8dd7eaa29 /plugins/base/src/main/kotlin/renderers/html
parentd207b1d1b428f9accc19a5db27ad00a7efff0e19 (diff)
downloaddokka-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.kt4
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,