@@ -38,69 +38,6 @@ val testJavaVersion = typedProp<String>("test.java.version")?.let {
3838}
3939
4040allprojects {
41- // apply(from = "${rootProject.file("buildSrc/src/main/kotlin/dokka-customization.gradle.kts")}")
42- //
43- // tasks.withType<org.jetbrains.dokka.gradle.AbstractDokkaTask>().configureEach {
44- // val sdkVersion: String by project
45- // moduleVersion.set(sdkVersion)
46- //
47- // val year = java.time.LocalDate.now().year
48- // val pluginConfigMap = mapOf(
49- // "org.jetbrains.dokka.base.DokkaBase" to """
50- // {
51- // "customStyleSheets": [
52- // "${rootProject.file("docs/dokka-presets/css/logo-styles.css")}",
53- // "${rootProject.file("docs/dokka-presets/css/aws-styles.css")}"
54- // ],
55- // "customAssets": [
56- // "${rootProject.file("docs/dokka-presets/assets/logo-icon.svg")}",
57- // "${rootProject.file("docs/dokka-presets/assets/aws_logo_white_59x35.png")}",
58- // "${rootProject.file("docs/dokka-presets/scripts/accessibility.js")}",
59- // "${rootProject.file("docs/dokka-presets/scripts/custom-navigation-loader.js")}"
60- // ],
61- // "footerMessage": "© $year, Amazon Web Services, Inc. or its affiliates. All rights reserved.",
62- // "separateInheritedMembers" : true,
63- // "templatesDir": "${rootProject.file("docs/dokka-presets/templates")}"
64- // }
65- // """,
66- // )
67- // pluginsMapConfiguration.set(pluginConfigMap)
68- // }
69- //
70- // tasks.withType<org.jetbrains.dokka.gradle.DokkaTaskPartial>().configureEach {
71- // dokkaSourceSets.configureEach {
72- // samples.from(project.file("samples").path, project.file("generated-src/samples").path)
73- //
74- // // Each module can include their own top-level module documentation in one or more included Markdown files,
75- // // each of which must begin with `# Module <module-name>` where <module-name> is the literal name of the
76- // // Gradle module. See https://kotlinlang.org/docs/dokka-module-and-package-docs.html for more details.
77- // val includeFiles = setOf(
78- // "OVERVIEW.md", // Auto-generated by ModuleDocumentationIntegration
79- // "DOCS.md", // Hand-written docs explaining a module in greater detail
80- // "API.md", // Auto-generated by `kat` tool
81- // ).mapNotNull { project.file(it).takeIf { it.exists() } }
82- // includes.from(includeFiles)
83- // }
84- //
85- // val smithyKotlinPackageListUrl: String? by project
86- // val smithyKotlinDocBaseUrl: String? by project
87- //
88- // // Configure Dokka to link to smithy-kotlin types if specified in properties
89- // // These optional properties are supplied api the api docs build job but are unneeded otherwise
90- // smithyKotlinDocBaseUrl.takeUnless { it.isNullOrEmpty() }?.let { docBaseUrl ->
91- // val expandedDocBaseUrl = docBaseUrl.replace("\$smithyKotlinRuntimeVersion", libs.versions.smithy.kotlin.runtime.version.get())
92- // dokkaSourceSets.configureEach {
93- // externalDocumentationLink {
94- // url.set(URL(expandedDocBaseUrl))
95- //
96- // smithyKotlinPackageListUrl
97- // .takeUnless { it.isNullOrEmpty() }
98- // ?.let { packageListUrl.set(URL(it)) }
99- // }
100- // }
101- // }
102- // }
103-
10441 if (rootProject.typedProp<Boolean >(" kotlinWarningsAsErrors" ) == true ) {
10542 tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
10643 compilerOptions.allWarningsAsErrors = true
@@ -133,29 +70,6 @@ dokka {
13370 }
13471}
13572
136-
137- // project.afterEvaluate {
138- // // configure the root multimodule docs
139- // tasks.dokkaHtmlMultiModule.configure {
140- // moduleName.set("AWS SDK for Kotlin")
141- //
142- // // Output subprojects' docs to <docs-base>/project-name/* instead of <docs-base>/path/to/project-name/*
143- // // This is especially important for inter-repo linking (e.g., via externalDocumentationLink) because the
144- // // package-list doesn't contain enough project path information to indicate where modules' documentation are
145- // // located.
146- // fileLayout.set { parent, child ->
147- // parent.outputDirectory.dir(child.moduleName)
148- // }
149- //
150- // includes.from(
151- // // NOTE: these get concatenated
152- // rootProject.file("docs/dokka-presets/README.md"),
153- // )
154- //
155- // finalizedBy("trimNavigations", "applyCustomNavigationLoader")
156- // }
157- // }
158-
15973// Aggregate subprojects' documentation
16074dependencies {
16175 dokka(project(" :aws-runtime" ))
0 commit comments