From a9c91cb7dc54c1554be5cf8de90516c929c0c1cb Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Fri, 19 Oct 2018 18:14:36 +0300 Subject: Hard-code min compiler version for samples --- core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src') diff --git a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt index 3b2b2897..86bc9df9 100644 --- a/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt +++ b/core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt @@ -195,7 +195,7 @@ open class KotlinWebsiteHtmlOutputBuilder( } override fun appendSampleBlockCode(language: String, imports: () -> Unit, body: () -> Unit) { - div(to, "sample") { + div(to, "sample", otherAttributes = " data-min-compiler-version=\"1.3\"") { appendBlockCode(language) { imports() wrap("\n\nfun main(args: Array) {".htmlEscape(), "}") { -- cgit