aboutsummaryrefslogtreecommitdiff
path: root/plugins/all-module-page
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-11-11 18:07:21 +0100
committerBłażej Kardyś <bkardys@virtuslab.com>2020-11-27 03:15:02 +0100
commit4639cbda50359c8dcbaa61f0a960c002c060d3b9 (patch)
tree8bc96fd08644d80e5fd244eab5dccf167cc55a21 /plugins/all-module-page
parente6ce96cef610cab0163c669ab4a9de0c259904cc (diff)
downloaddokka-4639cbda50359c8dcbaa61f0a960c002c060d3b9.tar.gz
dokka-4639cbda50359c8dcbaa61f0a960c002c060d3b9.tar.bz2
dokka-4639cbda50359c8dcbaa61f0a960c002c060d3b9.zip
Unify MultimoduleLocationProvider
Diffstat (limited to 'plugins/all-module-page')
-rw-r--r--plugins/all-module-page/src/main/kotlin/MultimoduleLocationProvider.kt6
-rw-r--r--plugins/all-module-page/src/main/kotlin/MultimodulePageCreator.kt2
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/all-module-page/src/main/kotlin/MultimoduleLocationProvider.kt b/plugins/all-module-page/src/main/kotlin/MultimoduleLocationProvider.kt
index 29107136..1e7fb60c 100644
--- a/plugins/all-module-page/src/main/kotlin/MultimoduleLocationProvider.kt
+++ b/plugins/all-module-page/src/main/kotlin/MultimoduleLocationProvider.kt
@@ -1,8 +1,8 @@
package org.jetbrains.dokka.allModulesPage
+import org.jetbrains.dokka.base.resolvers.local.DokkaBaseLocationProvider
import org.jetbrains.dokka.base.resolvers.local.DokkaLocationProvider
import org.jetbrains.dokka.base.resolvers.local.DokkaLocationProvider.Companion.identifierToFilename
-import org.jetbrains.dokka.base.resolvers.local.LocationProvider
import org.jetbrains.dokka.base.resolvers.local.LocationProviderFactory
import org.jetbrains.dokka.links.DRI
import org.jetbrains.dokka.model.DisplaySourceSet
@@ -10,7 +10,7 @@ import org.jetbrains.dokka.pages.PageNode
import org.jetbrains.dokka.pages.RootPageNode
import org.jetbrains.dokka.plugability.DokkaContext
-class MultimoduleLocationProvider(private val root: RootPageNode, context: DokkaContext) : LocationProvider {
+class MultimoduleLocationProvider(private val root: RootPageNode, context: DokkaContext) : DokkaBaseLocationProvider(root, context, ".html") {
private val defaultLocationProvider = DokkaLocationProvider(root, context)
@@ -38,4 +38,4 @@ class MultimoduleLocationProvider(private val root: RootPageNode, context: Dokka
override fun getLocationProvider(pageNode: RootPageNode) =
MultimoduleLocationProvider(pageNode, context)
}
-} \ No newline at end of file
+}
diff --git a/plugins/all-module-page/src/main/kotlin/MultimodulePageCreator.kt b/plugins/all-module-page/src/main/kotlin/MultimodulePageCreator.kt
index c3806b00..46c8bf82 100644
--- a/plugins/all-module-page/src/main/kotlin/MultimodulePageCreator.kt
+++ b/plugins/all-module-page/src/main/kotlin/MultimodulePageCreator.kt
@@ -2,13 +2,13 @@ package org.jetbrains.dokka.allModulesPage
import org.jetbrains.dokka.DokkaConfiguration.DokkaModuleDescription
import org.jetbrains.dokka.DokkaConfiguration.DokkaSourceSet
+import org.jetbrains.dokka.allModulesPage.MultimoduleLocationProvider.Companion.MULTIMODULE_PACKAGE_PLACEHOLDER
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.parsers.moduleAndPackage.ModuleAndPackageDocumentation.Classifier.Module
import org.jetbrains.dokka.base.parsers.moduleAndPackage.ModuleAndPackageDocumentationParsingContext
import org.jetbrains.dokka.base.parsers.moduleAndPackage.parseModuleAndPackageDocumentation
import org.jetbrains.dokka.base.parsers.moduleAndPackage.parseModuleAndPackageDocumentationFragments
import org.jetbrains.dokka.base.resolvers.anchors.SymbolAnchorHint
-import org.jetbrains.dokka.base.resolvers.local.MultimoduleLocationProvider.Companion.MULTIMODULE_PACKAGE_PLACEHOLDER
import org.jetbrains.dokka.base.transformers.pages.comments.DocTagToContentConverter
import org.jetbrains.dokka.base.translators.documentables.PageContentBuilder
import org.jetbrains.dokka.links.DRI