aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main/kotlin/org/jetbrains
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-08-28 13:15:46 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-08-28 15:17:58 +0200
commit56199ef712c442a960e11ec9a7bff6de4bc4a532 (patch)
tree7de34062d80eef340acb1d755edbebf25967dd44 /plugins/javadoc/src/main/kotlin/org/jetbrains
parent1cefaa46345cd13a36e12060118b1ab5f2936502 (diff)
downloaddokka-56199ef712c442a960e11ec9a7bff6de4bc4a532.tar.gz
dokka-56199ef712c442a960e11ec9a7bff6de4bc4a532.tar.bz2
dokka-56199ef712c442a960e11ec9a7bff6de4bc4a532.zip
Missing javadoc resources on windows
Diffstat (limited to 'plugins/javadoc/src/main/kotlin/org/jetbrains')
-rw-r--r--plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt
index 88bd90c3..46cad6f5 100644
--- a/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt
+++ b/plugins/javadoc/src/main/kotlin/org/jetbrains/dokka/javadoc/renderer/JavadocContentToTemplateMapTranslator.kt
@@ -13,6 +13,7 @@ import org.jetbrains.dokka.model.InheritedFunction
import org.jetbrains.dokka.pages.*
import org.jetbrains.dokka.plugability.DokkaContext
import org.jetbrains.dokka.utilities.formatToEndWithHtml
+import java.io.File
import java.nio.file.Paths
internal class JavadocContentToTemplateMapTranslator(
@@ -47,7 +48,7 @@ internal class JavadocContentToTemplateMapTranslator(
else -> run {
val link = locationProvider.resolve(node, skipExtension = true)
val dir = Paths.get(link).parent?.toNormalized().orEmpty()
- return dir.split("/").filter { it.isNotEmpty() }.joinToString("/") { ".." }.let {
+ return dir.split(File.separator).filter { it.isNotEmpty() }.joinToString("/") { ".." }.let {
if (it.isNotEmpty()) "$it/" else it
}
}