diff options
author | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-19 18:14:36 +0300 |
---|---|---|
committer | Simon Ogorodnik <Simon.Ogorodnik@jetbrains.com> | 2018-10-19 18:14:36 +0300 |
commit | a9c91cb7dc54c1554be5cf8de90516c929c0c1cb (patch) | |
tree | 3c875303ae687f93d7de1e902987eb1b911a2166 | |
parent | 8a2e8f8ddc37a8c548a18714f2ad87fb511bcb82 (diff) | |
download | dokka-a9c91cb7dc54c1554be5cf8de90516c929c0c1cb.tar.gz dokka-a9c91cb7dc54c1554be5cf8de90516c929c0c1cb.tar.bz2 dokka-a9c91cb7dc54c1554be5cf8de90516c929c0c1cb.zip |
Hard-code min compiler version for samples
-rw-r--r-- | core/src/main/kotlin/Formats/KotlinWebsiteHtmlFormatService.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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<String>) {".htmlEscape(), "}") { |