diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-08-24 16:17:26 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-28 16:07:02 +0200 |
commit | 25e90a1bd8f4a5121239b07be1f1dc3b786e1918 (patch) | |
tree | 4e7744409a728413960bda001a42876227f1caf0 | |
parent | 0e38d64aa84a90668f6e0e4e346e447f2349aa54 (diff) | |
download | dokka-25e90a1bd8f4a5121239b07be1f1dc3b786e1918.tar.gz dokka-25e90a1bd8f4a5121239b07be1f1dc3b786e1918.tar.bz2 dokka-25e90a1bd8f4a5121239b07be1f1dc3b786e1918.zip |
Make all modules page look the same as module page #1335
-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) |