Skip to content

Commit

Permalink
configure dokka to use generated samples (#1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd authored Dec 20, 2023
1 parent 705662f commit 605dc26
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changes/93140368-5000-4614-9f21-e9f1cf76f2ee.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions docs/dokka-presets/css/aws-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 605dc26

Please sign in to comment.