aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-03-19 10:44:48 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-04-08 13:21:22 +0200
commit6e3727211d04c2f946e4a354c4507b29e10a75f7 (patch)
tree708c43a9f4be7e09e0c8b67f1156cf5837a02fad /plugins/base/src/main/kotlin/translators
parent49d69219c9e3cf6307c5be161dc56d04e217d668 (diff)
downloaddokka-6e3727211d04c2f946e4a354c4507b29e10a75f7.tar.gz
dokka-6e3727211d04c2f946e4a354c4507b29e10a75f7.tar.bz2
dokka-6e3727211d04c2f946e4a354c4507b29e10a75f7.zip
Adds includes configuration parameter to include package and module descriptions
Diffstat (limited to 'plugins/base/src/main/kotlin/translators')
-rw-r--r--plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
index 3fcd07b3..8942991e 100644
--- a/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
+++ b/plugins/base/src/main/kotlin/translators/documentables/DefaultPageCreator.kt
@@ -64,6 +64,7 @@ open class DefaultPageCreator(
protected open fun contentForModule(m: DModule) = contentBuilder.contentFor(m) {
header(1) { text(m.name) }
+ +contentForComments(m)
block("Packages", 2, ContentKind.Packages, m.packages, m.platformData.toSet()) {
link(it.name, it.dri)
}
@@ -74,7 +75,9 @@ open class DefaultPageCreator(
protected open fun contentForPackage(p: DPackage) = contentBuilder.contentFor(p) {
group(p.dri, p.platformData.toSet(), ContentKind.Packages) {
header(1) { text("Package ${p.name}") }
+ +contentForComments(p)
}
+ header(1) { text("Package ${p.name}") }
+contentForScope(p, p.dri, p.platformData)
block("Type aliases", 2, ContentKind.TypeAliases, p.typealiases, p.platformData.toSet()) {
link(it.name, it.dri)