aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-08-17 10:46:26 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-17 11:52:28 +0200
commita2be91ea289ddb1a8634c5fd252243f1b9ab7000 (patch)
tree682463697296d7084d70ceb2816e65badf668fd0 /plugins/base
parentb439f0f4da19273a1b60df45aa380ecf2511de73 (diff)
downloaddokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.tar.gz
dokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.tar.bz2
dokka-a2be91ea289ddb1a8634c5fd252243f1b9ab7000.zip
Implement SelfRepresentingSingletonSet and let `ContentSourceSet` conform to it
Diffstat (limited to 'plugins/base')
-rw-r--r--plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt6
1 files changed, 3 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 d776e602..529caa93 100644
--- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
+++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt
@@ -220,7 +220,7 @@ open class HtmlRenderer(
return nodes.toList().map { (sourceSet, elements) ->
sourceSet to createHTML(prettyPrint = false).div {
elements.forEach {
- buildContentNode(it, pageContext, setOf(sourceSet))
+ buildContentNode(it, pageContext, sourceSet.toSet())
}
}.stripDiv()
}.groupBy(
@@ -248,13 +248,13 @@ open class HtmlRenderer(
node.groupDivergentInstances(pageContext, { instance, contentPage, sourceSet ->
createHTML(prettyPrint = false).div {
instance.before?.let { before ->
- buildContentNode(before, pageContext, setOf(sourceSet))
+ buildContentNode(before, pageContext, sourceSet)
}
}.stripDiv()
}, { instance, contentPage, sourceSet ->
createHTML(prettyPrint = false).div {
instance.after?.let { after ->
- buildContentNode(after, pageContext, setOf(sourceSet))
+ buildContentNode(after, pageContext, sourceSet)
}
}.stripDiv()
})