diff --git a/.changes/93140368-5000-4614-9f21-e9f1cf76f2ee.json b/.changes/93140368-5000-4614-9f21-e9f1cf76f2ee.json new file mode 100644 index 00000000000..c1131a4e32f --- /dev/null +++ b/.changes/93140368-5000-4614-9f21-e9f1cf76f2ee.json @@ -0,0 +1,8 @@ +{ + "id": "93140368-5000-4614-9f21-e9f1cf76f2ee", + "type": "feature", + "description": "Generate KDoc samples from modeled examples", + "issues": [ + "awslabs/aws-sdk-kotlin#239" + ] +} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index b9afba70852..e54b097faec 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -72,6 +72,10 @@ allprojects { } } + dokkaSourceSets.configureEach { + samples.from(project.file("samples").path, project.file("generated-src/samples").path) + } + val smithyKotlinPackageListUrl: String? by project val smithyKotlinDocBaseUrl: String? by project diff --git a/docs/dokka-presets/css/aws-styles.css b/docs/dokka-presets/css/aws-styles.css index b90bfa4802e..ee400c8c7c4 100644 --- a/docs/dokka-presets/css/aws-styles.css +++ b/docs/dokka-presets/css/aws-styles.css @@ -55,3 +55,11 @@ .symbol { overflow-wrap: break-word; } + +/* + Disable the playground run button for generated samples + https://github.com/Kotlin/dokka/issues/3041 +*/ +div .compiler-info, .fold-button, .run-button { + display: none; +} \ No newline at end of file