@@ -49,13 +49,16 @@ subprojects {
4949 }
5050 }
5151
52- val smithyKotlinPackageListUrl: String by project
53- val smithyKotlinDocBaseUrl: String by project
54- // Configure Dokka to link to smithy-kotlin types
55- dokkaSourceSets.configureEach {
56- externalDocumentationLink {
57- packageListUrl.set(URL (smithyKotlinPackageListUrl))
58- url.set(URL (smithyKotlinDocBaseUrl))
52+ val smithyKotlinPackageListUrl: String? by project
53+ val smithyKotlinDocBaseUrl: String? by project
54+ // Configure Dokka to link to smithy-kotlin types if specified in properties
55+ // These optional properties are supplied api the api docs build job but are unneeded otherwise
56+ if (! smithyKotlinDocBaseUrl.isNullOrEmpty() && ! smithyKotlinPackageListUrl.isNullOrEmpty()) {
57+ dokkaSourceSets.configureEach {
58+ externalDocumentationLink {
59+ packageListUrl.set(URL (smithyKotlinPackageListUrl))
60+ url.set(URL (smithyKotlinDocBaseUrl))
61+ }
5962 }
6063 }
6164 }
@@ -89,7 +92,7 @@ if (project.prop("kotlinWarningsAsErrors")?.toString()?.toBoolean() == true) {
8992
9093// configure the root multimodule docs
9194tasks.dokkaHtmlMultiModule.configure {
92- moduleName.set(" AWS Kotlin SDK" )
95+ moduleName.set(" AWS SDK for Kotlin " )
9396
9497 includes.from(
9598 // NOTE: these get concatenated
@@ -101,15 +104,6 @@ tasks.dokkaHtmlMultiModule.configure {
101104 project(" :aws-runtime:crt-util" ),
102105 )
103106 removeChildTasks(excludeFromDocumentation)
104-
105- // This allows docs generation to be overridden on the command line.
106- // Used to generate each AWS service individually.
107- if (project.hasProperty(" dokkaOutSubDir" )) {
108- val subDir = project.prop(" dokkaOutSubDir" );
109- val targetDir = buildDir.resolve(" dokka/$subDir " )
110- println (" Generating docs in $targetDir " )
111- outputDirectory.set(targetDir)
112- }
113107}
114108
115109if (
0 commit comments