diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 771235aa..000ae40e 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -423,7 +423,7 @@ credits = [
'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
], [
'Kotlin',
- '2010-2019 JetBrains s.r.o.',
+ '2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors',
'Apache',
'https://raw.githubusercontent.com/JetBrains/kotlin/master/license/LICENSE.txt'
], [
diff --git a/lib/docs/filters/kotlin/clean_html.rb b/lib/docs/filters/kotlin/clean_html.rb
index 6343e8ab..0d14c058 100644
--- a/lib/docs/filters/kotlin/clean_html.rb
+++ b/lib/docs/filters/kotlin/clean_html.rb
@@ -15,10 +15,14 @@ module Docs
end
css('pre').each do |node|
- node['data-language'] = 'kotlin' if node.at_css('code[data-lang="text/x-kotlin"]')
- node['data-language'] = 'xml' if node.at_css('code[data-lang="application/xml"]')
- node['data-language'] = 'javascript' if node.at_css('code[data-lang="text/javascript"]')
+ node['data-language'] = 'kotlin' if node.at_css('code.language-kotlin')
+ node['data-language'] = 'groovy' if node.at_css('code.language-groovy')
+ node['data-language'] = 'javascript' if node.at_css('code.language-javascript')
+ node['data-language'] = 'xml' if node.at_css('code.language-xml')
node.content = node.content
+ node.parent.remove_attribute('data-highlight-only')
+ node.parent.remove_attribute('data-lang')
+ node.parent.remove_attribute('theme')
end
end
diff --git a/lib/docs/scrapers/kotlin.rb b/lib/docs/scrapers/kotlin.rb
index 8707aee5..91ca19ff 100644
--- a/lib/docs/scrapers/kotlin.rb
+++ b/lib/docs/scrapers/kotlin.rb
@@ -1,7 +1,7 @@
module Docs
class Kotlin < UrlScraper
self.type = 'kotlin'
- self.release = '1.3.41'
+ self.release = '1.4.10'
self.base_url = 'https://kotlinlang.org/'
self.root_path = 'api/latest/jvm/stdlib/index.html'
self.links = {
@@ -33,7 +33,7 @@ module Docs
}
options[:attribution] = <<-HTML
- © 2010–2019 JetBrains s.r.o.
+ © 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
HTML