diff options
Diffstat (limited to 'src/Utilities')
-rw-r--r-- | src/Utilities/DokkaModule.kt | 2 | ||||
-rw-r--r-- | src/Utilities/Path.kt | 14 |
2 files changed, 1 insertions, 15 deletions
diff --git a/src/Utilities/DokkaModule.kt b/src/Utilities/DokkaModule.kt index 3b2d26f1..1eb82313 100644 --- a/src/Utilities/DokkaModule.kt +++ b/src/Utilities/DokkaModule.kt @@ -26,7 +26,7 @@ class DokkaModule(val environment: AnalysisEnvironment, binder.bind(LanguageService::class.java).to(KotlinLanguageService::class.java) binder.bind(HtmlTemplateService::class.java).toProvider(object : Provider<HtmlTemplateService> { - override fun get(): HtmlTemplateService = HtmlTemplateService.default("/dokka/styles/style.css") + override fun get(): HtmlTemplateService = HtmlTemplateService.default("style.css") }) binder.registerCategory<LanguageService>("language") diff --git a/src/Utilities/Path.kt b/src/Utilities/Path.kt index 36277d9f..05838499 100644 --- a/src/Utilities/Path.kt +++ b/src/Utilities/Path.kt @@ -1,19 +1,5 @@ package org.jetbrains.dokka import java.io.File -import java.io.IOException - -fun File.getRelativePath(name: File): File { - val parent = parentFile ?: throw IOException("No common directory") - - val basePath = canonicalPath + File.separator; - val targetPath = name.canonicalPath; - - if (targetPath.startsWith(basePath)) { - return File(targetPath.substring(basePath.length)) - } else { - return File(".." + File.separator + parent.getRelativePath(name)) - } -} fun File.appendExtension(extension: String) = if (extension.isEmpty()) this else File(path + "." + extension) |