aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Formats
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-05-17 19:48:44 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-05-17 19:48:44 +0300
commit9865da2e6e6c038ab6c719a6a03bb09184542d20 (patch)
tree986be16032df54f01ba47e3347937833dd761540 /core/src/main/kotlin/Formats
parentad95537c3f2eb5ba1478f82fd5b476d2309bc986 (diff)
downloaddokka-9865da2e6e6c038ab6c719a6a03bb09184542d20.tar.gz
dokka-9865da2e6e6c038ab6c719a6a03bb09184542d20.tar.bz2
dokka-9865da2e6e6c038ab6c719a6a03bb09184542d20.zip
Fix incorrect link to stylesheet in html format
Diffstat (limited to 'core/src/main/kotlin/Formats')
-rw-r--r--core/src/main/kotlin/Formats/HtmlFormatService.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/main/kotlin/Formats/HtmlFormatService.kt b/core/src/main/kotlin/Formats/HtmlFormatService.kt
index 0073553c..0ad946be 100644
--- a/core/src/main/kotlin/Formats/HtmlFormatService.kt
+++ b/core/src/main/kotlin/Formats/HtmlFormatService.kt
@@ -4,7 +4,6 @@ import com.google.inject.Inject
import com.google.inject.name.Named
import org.jetbrains.dokka.Utilities.impliedPlatformsName
import java.io.File
-import java.nio.file.Path
open class HtmlOutputBuilder(to: StringBuilder,
location: Location,
@@ -80,7 +79,7 @@ open class HtmlOutputBuilder(to: StringBuilder,
}
override fun appendNodes(nodes: Iterable<DocumentationNode>) {
- templateService.appendHeader(to, getPageTitle(nodes), generator.relativeToRoot(location))
+ templateService.appendHeader(to, getPageTitle(nodes), generator.relativePathToRoot(location))
super.appendNodes(nodes)
templateService.appendFooter(to)
}
@@ -108,7 +107,7 @@ open class HtmlFormatService @Inject constructor(generator: NodeLocationAwareGen
HtmlOutputBuilder(to, location, generator, languageService, extension, impliedPlatforms, templateService)
override fun appendOutline(location: Location, to: StringBuilder, nodes: Iterable<DocumentationNode>) {
- templateService.appendHeader(to, "Module Contents", generator.relativeToRoot(location))
+ templateService.appendHeader(to, "Module Contents", generator.relativePathToRoot(location))
super.appendOutline(location, to, nodes)
templateService.appendFooter(to)
}