diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-08-21 14:09:13 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-08-21 15:40:12 +0200 |
commit | faf621b643ad2b4b7103d921d4a2d9d4838a21d6 (patch) | |
tree | c4dd0ebacd7f3ad39648be18eace548d7bae6cd2 /plugins/base/src/main | |
parent | 1634c8a0184749ae9314adecf409851c35e93775 (diff) | |
download | dokka-faf621b643ad2b4b7103d921d4a2d9d4838a21d6.tar.gz dokka-faf621b643ad2b4b7103d921d4a2d9d4838a21d6.tar.bz2 dokka-faf621b643ad2b4b7103d921d4a2d9d4838a21d6.zip |
Improve resizing, remove important from styles
Diffstat (limited to 'plugins/base/src/main')
-rw-r--r-- | plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt index f4c9a1f7..1afb5569 100644 --- a/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt +++ b/plugins/base/src/main/kotlin/renderers/html/htmlPreprocessors.kt @@ -86,11 +86,6 @@ object NavigationPageInstaller : PageTransformer { children.filter { it is ContentPage && it.documentable is DEnumEntry }.map { visit(it as ContentPage) } else -> emptyList() }.sortedBy { it.name.toLowerCase() } - - private tailrec fun flattenNavigationNodes(nodes: List<NavigationNode>, acc: List<NavigationNode> = emptyList()): List<NavigationNode> { - if(nodes.isEmpty()) return acc - return flattenNavigationNodes(nodes.flatMap { it.children }, nodes.map { it.copy(children = emptyList()) } + acc) - } } object ResourceInstaller : PageTransformer { |