aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorTillmann Berg <git.berg@posteo.de>2019-11-27 23:38:34 +0100
committerKamil Doległo <kamilok1965@users.noreply.github.com>2019-12-10 13:23:43 +0100
commit2f4d5c5a7ab98409e5474fcd4c95dd144b1d9f8c (patch)
tree8455c946112a99128ffeebeedc109e534f7b151c /core/src/main
parent732ffcc09816ceb5eb60377adfb07d43fa160554 (diff)
downloaddokka-2f4d5c5a7ab98409e5474fcd4c95dd144b1d9f8c.tar.gz
dokka-2f4d5c5a7ab98409e5474fcd4c95dd144b1d9f8c.tar.bz2
dokka-2f4d5c5a7ab98409e5474fcd4c95dd144b1d9f8c.zip
Ignore samples.Sample import when generating runnable samples
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt b/core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt
index 4525e9d9..a67306f4 100644
--- a/core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt
+++ b/core/src/main/kotlin/Samples/KotlinWebsiteSampleProcessingService.kt
@@ -165,7 +165,7 @@ open class KotlinWebsiteSampleProcessingService
return sampleBuilder.text
}
- val importsToIgnore = arrayOf("samples.*").map { ImportPath.fromString(it) }
+ val importsToIgnore = arrayOf("samples.*", "samples.Sample").map { ImportPath.fromString(it) }
override fun processImports(psiElement: PsiElement): ContentBlockCode {
val psiFile = psiElement.containingFile