Skip to content

Commit 605dc26

Browse files
authored
configure dokka to use generated samples (#1143)
1 parent 705662f commit 605dc26

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"id": "93140368-5000-4614-9f21-e9f1cf76f2ee",
3+
"type": "feature",
4+
"description": "Generate KDoc samples from modeled examples",
5+
"issues": [
6+
"awslabs/aws-sdk-kotlin#239"
7+
]
8+
}

build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ allprojects {
7272
}
7373
}
7474

75+
dokkaSourceSets.configureEach {
76+
samples.from(project.file("samples").path, project.file("generated-src/samples").path)
77+
}
78+
7579
val smithyKotlinPackageListUrl: String? by project
7680
val smithyKotlinDocBaseUrl: String? by project
7781

docs/dokka-presets/css/aws-styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@
5555
.symbol {
5656
overflow-wrap: break-word;
5757
}
58+
59+
/*
60+
Disable the playground run button for generated samples
61+
https://github.com/Kotlin/dokka/issues/3041
62+
*/
63+
div .compiler-info, .fold-button, .run-button {
64+
display: none;
65+
}

0 commit comments

Comments
 (0)