Skip to content

Commit 0a1eeda

Browse files
authored
fix: enable intra-repo links in API ref docs (#711)
1 parent 4d229ad commit 0a1eeda

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "2ae86281-8a85-4470-bb85-618d857cb21b",
3+
"type": "bugfix",
4+
"description": "Enable intra-repo links in API ref docs",
5+
"issues": [
6+
"awslabs/aws-sdk-kotlin#715"
7+
]
8+
}

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ if (project.prop("kotlinWarningsAsErrors")?.toString()?.toBoolean() == true) {
8484
tasks.dokkaHtmlMultiModule.configure {
8585
moduleName.set("Smithy Kotlin")
8686

87+
// Output subprojects' docs to <docs-base>/project-name/* instead of <docs-base>/path/to/project-name/*
88+
// This is especially important for inter-repo linking (e.g., via externalDocumentationLink) because the
89+
// package-list doesn't contain enough project path information to indicate where modules' documentation are
90+
// located.
91+
fileLayout.set { parent, child -> parent.outputDirectory.get().resolve(child.project.name) }
92+
8793
includes.from(
8894
// NOTE: these get concatenated
8995
rootProject.file("docs/dokka-presets/README.md"),

gradle.properties

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ kotlin.incremental.js=true
33
kotlin.incremental.multiplatform=true
44
kotlin.mpp.stability.nowarn=true
55
kotlin.native.ignoreDisabledTargets=true
6-
7-
8-
# FIXME - see https://youtrack.jetbrains.com/issue/KTIJ-21583/HMPP-1-6-20-breaks-autocomplete-in-multiplatform-composite-build
9-
#kotlin.mpp.hierarchicalStructureSupport=false
6+
kotlin.mpp.enableCompatibilityMetadataVariant=true
107

118
# SDK
129
sdkVersion=0.12.9-SNAPSHOT
@@ -46,4 +43,4 @@ kotlinLoggingVersion=2.1.21
4643
slf4jVersion=1.7.36
4744

4845
# crt
49-
crtKotlinVersion=0.6.4
46+
crtKotlinVersion=0.6.5-SNAPSHOT

0 commit comments

Comments
 (0)