diff options
-rw-r--r-- | plugins/base/src/main/kotlin/allModulePage/MultimodulePageCreator.kt | 5 | ||||
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/base/src/main/kotlin/allModulePage/MultimodulePageCreator.kt b/plugins/base/src/main/kotlin/allModulePage/MultimodulePageCreator.kt index 4be84749..d1832cbc 100644 --- a/plugins/base/src/main/kotlin/allModulePage/MultimodulePageCreator.kt +++ b/plugins/base/src/main/kotlin/allModulePage/MultimodulePageCreator.kt @@ -46,9 +46,8 @@ class MultimodulePageCreator( val paragraph = module.docFile.readText().let { parser.parse(it).firstParagraph() } paragraph?.let { val dri = DRI(packageName = MULTIMODULE_PACKAGE_PLACEHOLDER, classNames = module.name) - val dci = DCI(setOf(dri), ContentKind.Main) - val header = - ContentHeader(listOf(linkNode(module.name, dri)), 2, dci, emptySet(), emptySet()) + val dci = DCI(setOf(dri), ContentKind.Comment) + val header = linkNode(module.name, dri) val content = ContentGroup( DocTagToContentConverter.buildContent(it, dci, emptySet()), dci, diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 878432b4..d95d8f2a 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -393,7 +393,7 @@ open class HtmlRenderer( } it.filter { it !is ContentLink }.takeIf { it.isNotEmpty() }?.let { - if(pageContext is ModulePage){ + if(pageContext is ModulePage || pageContext is MultimoduleRootPage){ it.forEach { span(classes = if(it.dci.kind == ContentKind.Comment) "brief-comment" else "") { it.build(this, pageContext, sourceSetRestriction) |