diff options
Diffstat (limited to 'src/Generation')
-rw-r--r-- | src/Generation/FileGenerator.kt | 6 | ||||
-rw-r--r-- | src/Generation/Generator.kt | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt index 810038fa..a762bae3 100644 --- a/src/Generation/FileGenerator.kt +++ b/src/Generation/FileGenerator.kt @@ -42,6 +42,12 @@ 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) + } + } } private fun File.mkdirsOrFail() { diff --git a/src/Generation/Generator.kt b/src/Generation/Generator.kt index d7db1c52..ac10a6a5 100644 --- a/src/Generation/Generator.kt +++ b/src/Generation/Generator.kt @@ -3,11 +3,13 @@ package org.jetbrains.dokka public interface Generator { fun buildPages(nodes: Iterable<DocumentationNode>) fun buildOutlines(nodes: Iterable<DocumentationNode>) + fun buildSupportFiles() } fun Generator.buildAll(nodes: Iterable<DocumentationNode>) { buildPages(nodes) buildOutlines(nodes) + buildSupportFiles() } fun Generator.buildPage(node: DocumentationNode): Unit = buildPages(listOf(node)) |