aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-01-28 14:22:11 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-02-10 12:16:32 +0100
commit663d8e04dc78ce9bfe02cb1e84f27faab1e34208 (patch)
tree1b972022c950d1244f7baaece40282d2a616e9ab /core/src/main/kotlin/pages
parent612e8c2f6f1b52f19c6ae51aa3d5655dfb43ba0c (diff)
downloaddokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.tar.gz
dokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.tar.bz2
dokka-663d8e04dc78ce9bfe02cb1e84f27faab1e34208.zip
contentForClass fixed and tests
Diffstat (limited to 'core/src/main/kotlin/pages')
-rw-r--r--core/src/main/kotlin/pages/PageBuilder.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/main/kotlin/pages/PageBuilder.kt b/core/src/main/kotlin/pages/PageBuilder.kt
index 003cc815..7fe07ae4 100644
--- a/core/src/main/kotlin/pages/PageBuilder.kt
+++ b/core/src/main/kotlin/pages/PageBuilder.kt
@@ -70,6 +70,7 @@ class DefaultPageBuilder(
private fun contentForClass(c: Class) = group(c) {
header(1) { text(c.name) }
+
c.inherited.takeIf { it.isNotEmpty() }?.let {
header(2) { text("SuperInterfaces") }
linkTable(it)
@@ -83,6 +84,12 @@ class DefaultPageBuilder(
comment(it.root)
text("\n")
}
+ contentForComments(c)
+ block("Constructors", 2, ContentKind.Functions, c.constructors, c.platformData) {
+ link(it.name, it.dri)
+ signature(it)
+ text(it.briefDocTagString)
+ }
block("Functions", 2, ContentKind.Functions, c.functions, c.platformData) {
link(it.name, it.dri)