aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt4
-rw-r--r--plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt12
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
index f0e62f11..c8ef7cbc 100644
--- a/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
+++ b/plugins/base/src/main/kotlin/transformers/pages/sourcelinks/SourceLinksTransformer.kt
@@ -123,8 +123,8 @@ class SourceLinksTransformer(val context: DokkaContext, val builder: PageContent
data class SourceLink(val path: String, val url: String, val lineSuffix: String?, val sourceSetData: DokkaSourceSet) {
constructor(sourceLinkDefinition: DokkaConfiguration.SourceLinkDefinition, sourceSetData: DokkaSourceSet) : this(
- sourceLinkDefinition.path, sourceLinkDefinition.url, sourceLinkDefinition.lineSuffix, sourceSetData
+ sourceLinkDefinition.localDirectory, sourceLinkDefinition.remoteUrl, sourceLinkDefinition.remoteLineSuffix, sourceSetData
)
}
-fun ContentGroup.hasTabbedContent(): Boolean = children.any { it.hasStyle(ContentStyle.TabbedContent) } \ No newline at end of file
+fun ContentGroup.hasTabbedContent(): Boolean = children.any { it.hasStyle(ContentStyle.TabbedContent) }
diff --git a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt
index a8fc9f6d..40c87b75 100644
--- a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt
+++ b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt
@@ -69,9 +69,9 @@ class LinkableContentTest : AbstractCoreTest() {
sourceRoots = listOf("$testDataDir/jsMain/kotlin")
sourceLinks = listOf(
SourceLinkDefinitionImpl(
- path = "jsMain/kotlin",
- url = "https://github.com/user/repo/tree/master/src/jsMain/kotlin",
- lineSuffix = "#L"
+ localDirectory = "jsMain/kotlin",
+ remoteUrl = "https://github.com/user/repo/tree/master/src/jsMain/kotlin",
+ remoteLineSuffix = "#L"
)
)
name = "js"
@@ -82,9 +82,9 @@ class LinkableContentTest : AbstractCoreTest() {
sourceRoots = listOf("$testDataDir/jvmMain/kotlin")
sourceLinks = listOf(
SourceLinkDefinitionImpl(
- path = "jvmMain/kotlin",
- url = "https://github.com/user/repo/tree/master/src/jvmMain/kotlin",
- lineSuffix = "#L"
+ localDirectory = "jvmMain/kotlin",
+ remoteUrl = "https://github.com/user/repo/tree/master/src/jvmMain/kotlin",
+ remoteLineSuffix = "#L"
)
)
name = "jvm"