diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-12-03 17:08:23 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-12-03 17:08:23 +0100 |
commit | c14cfa23bc65aeaf1e74ae982459fa0321d7e615 (patch) | |
tree | 73efeaeea0d1702b9b482a25088c0a890ba3ada7 /core/src/main/kotlin/Generation | |
parent | 334f25c392aa72ee76e4c4aaf0676b7f57c4a20c (diff) | |
download | dokka-c14cfa23bc65aeaf1e74ae982459fa0321d7e615.tar.gz dokka-c14cfa23bc65aeaf1e74ae982459fa0321d7e615.tar.bz2 dokka-c14cfa23bc65aeaf1e74ae982459fa0321d7e615.zip |
allow each format service to provide its own support files
Diffstat (limited to 'core/src/main/kotlin/Generation')
-rw-r--r-- | core/src/main/kotlin/Generation/FileGenerator.kt | 6 |
1 files changed, 4 insertions, 2 deletions
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) + } } } } |