aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/renderers/DefaultRenderer.kt
diff options
context:
space:
mode:
authorBłażej Kardyś <bkardys@virtuslab.com>2019-11-15 03:37:27 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2019-11-25 16:08:44 +0100
commitdef5b63ec4afa69d22f66bf1af76175fc1cdec3f (patch)
treed920fd0460506d75dac1aac279ac8f50e525f58a /core/src/main/kotlin/renderers/DefaultRenderer.kt
parent1be2870b600cdbbe6aebb9f64c0226b26e42ca5a (diff)
downloaddokka-def5b63ec4afa69d22f66bf1af76175fc1cdec3f.tar.gz
dokka-def5b63ec4afa69d22f66bf1af76175fc1cdec3f.tar.bz2
dokka-def5b63ec4afa69d22f66bf1af76175fc1cdec3f.zip
Page generation changes
Diffstat (limited to 'core/src/main/kotlin/renderers/DefaultRenderer.kt')
-rw-r--r--core/src/main/kotlin/renderers/DefaultRenderer.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/kotlin/renderers/DefaultRenderer.kt b/core/src/main/kotlin/renderers/DefaultRenderer.kt
index 1acaaf4f..3b16c093 100644
--- a/core/src/main/kotlin/renderers/DefaultRenderer.kt
+++ b/core/src/main/kotlin/renderers/DefaultRenderer.kt
@@ -54,7 +54,7 @@ abstract class DefaultRenderer(val fileWriter: FileWriter, val locationProvider:
}
protected open fun buildPageContent(page: PageNode): String =
- buildNavigation(page) + page.content.joinToString("\n") { it.build(page) }
+ buildNavigation(page) + page.content.build(page)
protected open fun renderPage(page: PageNode) =
fileWriter.write(locationProvider.resolve(page), buildPageContent(page), "")
@@ -88,3 +88,5 @@ abstract class DefaultRenderer(val fileWriter: FileWriter, val locationProvider:
renderPages(root)
}
}
+
+fun PageNode.platforms() = this.content.platforms.toList() \ No newline at end of file