aboutsummaryrefslogtreecommitdiff
path: root/src/Generation
diff options
context:
space:
mode:
Diffstat (limited to 'src/Generation')
-rw-r--r--src/Generation/FileGenerator.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generation/FileGenerator.kt b/src/Generation/FileGenerator.kt
index 22090937..abe4257f 100644
--- a/src/Generation/FileGenerator.kt
+++ b/src/Generation/FileGenerator.kt
@@ -13,7 +13,7 @@ public class FileGenerator(val signatureGenerator: LanguageService,
public fun buildPages(nodes: Iterable<DocumentationNode>) {
for ((location, items) in nodes.groupBy { locationService.location(it) }) {
- val file = location.file.appendExtension(formatService.extension)
+ val file = location.file
file.getParentFile()?.mkdirs()
FileOutputStream(file).use {
OutputStreamWriter(it, Charsets.UTF_8).use {