diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-03-04 16:51:55 +0100 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-03-04 16:51:55 +0100 |
commit | be35f8628fbbfe3cc248f6c504a664a77d37c8e7 (patch) | |
tree | 4d44dc62452a00cab6af359afda6a1a06db1b921 /plugins/base/src/main/kotlin | |
parent | 88e1a926a2da832f58b4d1d9e14b9ad062c9ef69 (diff) | |
download | dokka-be35f8628fbbfe3cc248f6c504a664a77d37c8e7.tar.gz dokka-be35f8628fbbfe3cc248f6c504a664a77d37c8e7.tar.bz2 dokka-be35f8628fbbfe3cc248f6c504a664a77d37c8e7.zip |
Prunes member branches in navigation tree
Diffstat (limited to 'plugins/base/src/main/kotlin')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt index 9db0f2a8..787f2b69 100644 --- a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt +++ b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt @@ -45,7 +45,11 @@ object NavigationPageInstaller : PageTransformer { page.name, page.dri.first(), page.platforms(), - page.children.filterIsInstance<ContentPage>().map { visit(it) }) + if (page !is ClasslikePageNode) + page.children.filterIsInstance<ContentPage>().map { visit(it) } + else + emptyList() + ) } object ResourceInstaller : PageTransformer { |