From c14cfa23bc65aeaf1e74ae982459fa0321d7e615 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 3 Dec 2015 17:08:23 +0100 Subject: allow each format service to provide its own support files --- core/src/main/kotlin/Generation/FileGenerator.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/src/main/kotlin/Generation') diff --git a/core/src/main/kotlin/Generation/FileGenerator.kt b/core/src/main/kotlin/Generation/FileGenerator.kt index a762bae3..e3d1d1fe 100644 --- a/core/src/main/kotlin/Generation/FileGenerator.kt +++ b/core/src/main/kotlin/Generation/FileGenerator.kt @@ -44,8 +44,10 @@ public class FileGenerator @Inject constructor(val locationService: FileLocation } override fun buildSupportFiles() { - FileOutputStream(locationService.location(listOf("style.css"), false).file).use { - javaClass.getResourceAsStream("/dokka/styles/style.css").copyTo(it) + formatService.enumerateSupportFiles { resource, targetPath -> + FileOutputStream(locationService.location(listOf(targetPath), false).file).use { + javaClass.getResourceAsStream(resource).copyTo(it) + } } } } -- cgit