diff options
author | Marcin K <github@anubis.email> | 2022-11-22 22:16:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-22 22:16:00 +0100 |
commit | dc1f9d20f599ca8f9311b779645bc5e53784ca92 (patch) | |
tree | 81a183dbd40eff0ee2ec4c148d058ee8ec689d2a /plugins/javadoc/src/main/kotlin | |
parent | f6e5bd673f68c7de644c27c7e8e9f9f1080018fb (diff) | |
download | dokka-dc1f9d20f599ca8f9311b779645bc5e53784ca92.tar.gz dokka-dc1f9d20f599ca8f9311b779645bc5e53784ca92.tar.bz2 dokka-dc1f9d20f599ca8f9311b779645bc5e53784ca92.zip |
Fix package and module description truncation in javadoc (#2751)
Diffstat (limited to 'plugins/javadoc/src/main/kotlin')
-rw-r--r-- | plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPageCreator.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPageCreator.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPageCreator.kt index a79c6b20..80814103 100644 --- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPageCreator.kt +++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/JavadocPageCreator.kt @@ -84,7 +84,7 @@ open class JavadocPageCreator(context: DokkaContext) { JavadocContentKind.OverviewSummary, m.sourceSets.toDisplaySourceSets() ) { - title(m.name, m.brief(), documentationVersion, dri = setOf(m.dri), kind = ContentKind.Main) + title(m.name, m.descriptionToContentNodes(), documentationVersion, dri = setOf(m.dri), kind = ContentKind.Main) leafList(setOf(m.dri), ContentKind.Packages, JavadocList( "Packages", "Package", @@ -103,7 +103,7 @@ open class JavadocPageCreator(context: DokkaContext) { JavadocContentKind.PackageSummary, p.sourceSets.toDisplaySourceSets() ) { - title("Package ${p.name}", p.brief(), dri = setOf(p.dri), kind = ContentKind.Packages) + title("Package ${p.name}", p.descriptionToContentNodes(), dri = setOf(p.dri), kind = ContentKind.Packages) fun allClasslikes(c: DClasslike): List<DClasslike> = c.classlikes.flatMap { allClasslikes(it) } + c val rootList = p.classlikes.map { allClasslikes(it) }.flatten().groupBy { it::class }.map { (key, value) -> JavadocList(key.tabTitle, key.colTitle, value.map { c -> |