diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-07-06 14:33:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 14:33:46 +0200 |
commit | acdda6c864a54c9224bc05dc54b7049aac3a92bd (patch) | |
tree | c3532593e91c94f3c72a919a6600f1dd6c3cb928 /plugins/all-modules-page/src/main | |
parent | 0bf1d0f5491a62c56393a06cdfb4168778d9829e (diff) | |
download | dokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.tar.gz dokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.tar.bz2 dokka-acdda6c864a54c9224bc05dc54b7049aac3a92bd.zip |
Change jekyll links to be .html (#1990)
Diffstat (limited to 'plugins/all-modules-page/src/main')
-rw-r--r-- | plugins/all-modules-page/src/main/kotlin/ExternalModuleLinkResolver.kt | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/all-modules-page/src/main/kotlin/ExternalModuleLinkResolver.kt b/plugins/all-modules-page/src/main/kotlin/ExternalModuleLinkResolver.kt index e7925ead..fcb129ec 100644 --- a/plugins/all-modules-page/src/main/kotlin/ExternalModuleLinkResolver.kt +++ b/plugins/all-modules-page/src/main/kotlin/ExternalModuleLinkResolver.kt @@ -67,14 +67,7 @@ class DefaultExternalModuleLinkResolver(val context: DokkaContext) : ExternalMod context.configuration.modules.firstOrNull { it.name == moduleName } ?.let { module -> val packageList = loadPackageListForModule(module) - val extension = when (packageList?.linkFormat) { - RecognizedLinkFormat.KotlinWebsiteHtml, - RecognizedLinkFormat.DokkaOldHtml, - RecognizedLinkFormat.DokkaHtml -> ".html" - RecognizedLinkFormat.DokkaGFM, - RecognizedLinkFormat.DokkaJekyll -> ".md" - else -> "" - } + val extension = packageList?.linkFormat?.linkExtension?.let { ".$it" }.orEmpty() "${module.relativePathToOutputDirectory}/index$extension" } |