Skip to content

Commit 310661b

Browse files
authored
misc: render code examples as link (api ref docs) (#1557)
1 parent 75f3480 commit 310661b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codegen/aws-sdk-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/ModuleDocumentationIntegration.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ class ModuleDocumentationIntegration(
112112
?.value
113113

114114
appendLine("## Code Examples")
115-
append("To see full code examples, see the ${title ?: sdkId} examples in the AWS code example library. ")
116-
appendLine("See $codeExampleLink")
115+
appendLine("Explore code examples for ${title ?: sdkId} in the <a href=\"$codeExampleLink\">AWS code example library</a>.")
117116
appendLine()
118117
}
119118
}

codegen/aws-sdk-codegen/src/test/kotlin/aws/sdk/kotlin/codegen/ModuleDocumentationIntegrationTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ModuleDocumentationIntegrationTest {
6161
.shouldContainOnlyOnceWithDiff(
6262
"""
6363
## Code Examples
64-
To see full code examples, see the Test Service examples in the AWS code example library. See https://example.com
64+
Explore code examples for Test Service in the <a href="https://example.com">AWS code example library</a>
6565
""".trimIndent(),
6666
)
6767
}

0 commit comments

Comments
 (0)