From c4c992a2050f96871ea44cddbf39367f568bf544 Mon Sep 17 00:00:00 2001 From: Szymon Świstun Date: Mon, 16 Dec 2019 15:20:56 +0100 Subject: module name --- core/src/main/kotlin/pages/PageBuilder.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/src/main/kotlin/pages/PageBuilder.kt') 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, -- cgit