Skip to content

Commit

Permalink
fix samples in Dokka (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBusarow authored Jul 25, 2021
1 parent 2a24efd commit 808e74a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ apiValidation {

subprojects {

if (File("$projectDir/src").exists()) {
if (File("$projectDir/src").exists() && !path.endsWith("samples")) {
apply(plugin = "org.jetbrains.dokka")

val proj = this
Expand All @@ -181,6 +181,10 @@ subprojects {

getByName("main") {

if (File("${proj.projectDir}/samples").exists()) {
samples.setFrom("${proj.projectDir}/samples")
}

if (File("${proj.projectDir}/README.md").exists()) {
includes.from(files("${proj.projectDir}/README.md"))
}
Expand Down

0 comments on commit 808e74a

Please sign in to comment.