aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/pages/PageBuilder.kt
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2019-12-16 15:20:56 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-08 10:45:08 +0100
commitc4c992a2050f96871ea44cddbf39367f568bf544 (patch)
tree3ee590f1c4b07021aa3bbcb3f976ac2539434a79 /core/src/main/kotlin/pages/PageBuilder.kt
parent290879c011760a27c1daf81bdb362d958123960b (diff)
downloaddokka-c4c992a2050f96871ea44cddbf39367f568bf544.tar.gz
dokka-c4c992a2050f96871ea44cddbf39367f568bf544.tar.bz2
dokka-c4c992a2050f96871ea44cddbf39367f568bf544.zip
module name
Diffstat (limited to 'core/src/main/kotlin/pages/PageBuilder.kt')
-rw-r--r--core/src/main/kotlin/pages/PageBuilder.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/kotlin/pages/PageBuilder.kt b/core/src/main/kotlin/pages/PageBuilder.kt
index b1009a33..9c40f73e 100644
--- a/core/src/main/kotlin/pages/PageBuilder.kt
+++ b/core/src/main/kotlin/pages/PageBuilder.kt
@@ -9,13 +9,12 @@ class DefaultPageBuilder(
) : PageBuilder {
override fun pageForModule(m: Module): ModulePageNode =
- ModulePageNode("root", contentForModule(m), m, m.packages.map { pageForPackage(it) })
+ ModulePageNode(m.name ?: "root", contentForModule(m), m, m.packages.map { pageForPackage(it) })
override fun pageForPackage(p: Package) =
PackagePageNode(p.name, contentForPackage(p), p.dri, p,
p.classes.map { pageForClass(it) } +
- p.functions.map { pageForMember(it) } +
- p.properties.map { pageForMember(it) })
+ p.functions.map { pageForMember(it) })
override fun pageForClass(c: Class): ClassPageNode =
ClassPageNode(c.name, contentForClass(c), c.dri, c,