Loading aws/sdk/build.gradle.kts +5 −4 Original line number Diff line number Diff line Loading @@ -124,11 +124,12 @@ task("generateSmithyBuild") { } } task("generateDocs") { task("generateIndexMd") { inputs.property("servicelist", awsServices.services.toString()) outputs.file(outputDir.resolve("docs.md")) val indexMd = outputDir.resolve("index.md") outputs.file(indexMd) doLast { project.docsLandingPage(awsServices, outputDir) project.docsLandingPage(awsServices, indexMd) } } Loading Loading @@ -268,7 +269,7 @@ task("finalizeSdk") { "relocateRuntime", "relocateAwsRuntime", "relocateExamples", "generateDocs", "generateIndexMd", "fixManifests" ) } Loading buildSrc/src/main/kotlin/aws/sdk/DocsLandingPage.kt +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ import java.io.File * The generated docs will include links to crates.io, docs.rs and GitHub examples for all generated services. The generated docs will * be written to `docs.md` in the provided [outputDir]. */ fun Project.docsLandingPage(awsServices: AwsServices, outputDir: File) { fun Project.docsLandingPage(awsServices: AwsServices, outputPath: File) { val project = this val writer = CodeWriter() with(writer) { Loading @@ -38,7 +38,7 @@ fun Project.docsLandingPage(awsServices: AwsServices, outputDir: File) { ) } } outputDir.resolve("index.md").writeText(writer.toString()) outputPath.writeText(writer.toString()) } /** Loading Loading
aws/sdk/build.gradle.kts +5 −4 Original line number Diff line number Diff line Loading @@ -124,11 +124,12 @@ task("generateSmithyBuild") { } } task("generateDocs") { task("generateIndexMd") { inputs.property("servicelist", awsServices.services.toString()) outputs.file(outputDir.resolve("docs.md")) val indexMd = outputDir.resolve("index.md") outputs.file(indexMd) doLast { project.docsLandingPage(awsServices, outputDir) project.docsLandingPage(awsServices, indexMd) } } Loading Loading @@ -268,7 +269,7 @@ task("finalizeSdk") { "relocateRuntime", "relocateAwsRuntime", "relocateExamples", "generateDocs", "generateIndexMd", "fixManifests" ) } Loading
buildSrc/src/main/kotlin/aws/sdk/DocsLandingPage.kt +2 −2 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ import java.io.File * The generated docs will include links to crates.io, docs.rs and GitHub examples for all generated services. The generated docs will * be written to `docs.md` in the provided [outputDir]. */ fun Project.docsLandingPage(awsServices: AwsServices, outputDir: File) { fun Project.docsLandingPage(awsServices: AwsServices, outputPath: File) { val project = this val writer = CodeWriter() with(writer) { Loading @@ -38,7 +38,7 @@ fun Project.docsLandingPage(awsServices: AwsServices, outputDir: File) { ) } } outputDir.resolve("index.md").writeText(writer.toString()) outputPath.writeText(writer.toString()) } /** Loading