Merge pull request #1330 from simon04/kotlin-1.4

kotlin: update release 1.4.10
pull/1332/head
Simon Legner 4 years ago committed by GitHub
commit a23035d02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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'
], [

@ -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

@ -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
&copy; 2010&ndash;2019 JetBrains s.r.o.<br>
&copy; 2010&ndash;2020 JetBrains s.r.o. and Kotlin Programming Language contributors<br>
Licensed under the Apache License, Version 2.0.
HTML

Loading…
Cancel
Save