Skip to content

Commit

Permalink
Fix cross-repo linking
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Jan 24, 2025
1 parent 8652996 commit c8e51cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions buildSrc/src/main/kotlin/dokka-convention.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import gradle.kotlin.dsl.accessors._619b2d94f14c1ac9ec487bdd1e99f33b.dokkaSourceSets
import kotlin.text.set

plugins {
Expand Down Expand Up @@ -39,11 +38,13 @@ dokka {
}
}

// Configure Dokka to link to latest smithy-kotlin types
// Configure Dokka to link to smithy-kotlin types
dokkaSourceSets.configureEach {
externalDocumentationLinks {
// FIXME Get current smithy-kotlin-runtime-version without using version catalogs (not accessible from convention plugin)
uri("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/latest/")
create("smithy-kotlin") {
val smithyKotlinRuntimeVersion = versionCatalogs.named("libs").findVersion("smithy-kotlin-runtime-version").get()
url("https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/$smithyKotlinRuntimeVersion")
}
}
}
}
Expand Down

0 comments on commit c8e51cf

Please sign in to comment.