aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin
diff options
context:
space:
mode:
authorFilip Zybała <fzybala@virtuslab.com>2020-07-08 13:50:01 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-07-13 16:44:20 +0200
commitd9464bcf9583b21de6e9ec8fe70c3f959e972c73 (patch)
treeba034d59c3dbff3d987a67007355faf7a59e5ada /plugins/base/src/main/kotlin
parent2ca99df241b0fe51f533c7b1d2da416677929867 (diff)
downloaddokka-d9464bcf9583b21de6e9ec8fe70c3f959e972c73.tar.gz
dokka-d9464bcf9583b21de6e9ec8fe70c3f959e972c73.tar.bz2
dokka-d9464bcf9583b21de6e9ec8fe70c3f959e972c73.zip
WIP
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
index 50af53f0..dc211502 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -74,7 +74,7 @@ open class HtmlRenderer(
node.extra.extraHtmlAttributes().forEach { attributes[it.extraKey] = it.extraValue }
childrenCallback()
}
- node.dci.kind in setOf(ContentKind.Symbol, ContentKind.Sample) -> div("symbol $additionalClasses") {
+ node.dci.kind in setOf(ContentKind.Symbol) -> div("symbol $additionalClasses") {
childrenCallback()
if (node.hasStyle(TextStyle.Monospace)) copyButton()
}
@@ -548,8 +548,11 @@ open class HtmlRenderer(
code: ContentCode,
pageContext: ContentPage
) {
- code(code.style.joinToString(" ") { it.toString().toLowerCase() }) {
- code.children.forEach { buildContentNode(it, pageContext) }
+ div("sample-container") {
+ code(code.style.joinToString(" ") { it.toString().toLowerCase() }) {
+ attributes["theme"] = "idea"
+ code.children.forEach { buildContentNode(it, pageContext) }
+ }
}
}