diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-26 21:17:13 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-26 21:17:13 +0100 |
commit | 4b61be354510cf88fed33860c987bd210502e91d (patch) | |
tree | 7b7bb9f317cf0edfe1cdee404b6b34ff02e39054 /src/Generation | |
parent | 11bc0b1ceef4340e7587b85b647010faf171131b (diff) | |
download | dokka-4b61be354510cf88fed33860c987bd210502e91d.tar.gz dokka-4b61be354510cf88fed33860c987bd210502e91d.tar.bz2 dokka-4b61be354510cf88fed33860c987bd210502e91d.zip |
don't generate redundant links that lead to the same page with no anchor (e.g. receiver type in extension functions)
Diffstat (limited to 'src/Generation')
-rw-r--r-- | src/Generation/FileGenerator.kt | 2 |
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 { |