Unified · Split
| @@ -423,7 +423,7 @@ credits = [ · 422 unmodified lines | ||
| 423 | 423 | 'https://raw.githubusercontent.com/koajs/koa/master/LICENSE' |
| 424 | 424 | ], [ |
| 425 | 425 | 'Kotlin', |
| 426 | − '2010-2019 JetBrains s.r.o.', | |
| 426 | + '2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors', | |
| 427 | 427 | 'Apache', |
| 428 | 428 | 'https://raw.githubusercontent.com/JetBrains/kotlin/master/license/LICENSE.txt' |
| 429 | 429 | ], [ |
| @@ -15,10 +15,14 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | end |
| 16 | 16 | |
| 17 | 17 | css('pre').each do |node| |
| 18 | − node['data-language'] = 'kotlin' if node.at_css('code[data-lang="text/x-kotlin"]') | |
| 19 | − node['data-language'] = 'xml' if node.at_css('code[data-lang="application/xml"]') | |
| 20 | − node['data-language'] = 'javascript' if node.at_css('code[data-lang="text/javascript"]') | |
| 18 | + node['data-language'] = 'kotlin' if node.at_css('code.language-kotlin') | |
| 19 | + node['data-language'] = 'groovy' if node.at_css('code.language-groovy') | |
| 20 | + node['data-language'] = 'javascript' if node.at_css('code.language-javascript') | |
| 21 | + node['data-language'] = 'xml' if node.at_css('code.language-xml') | |
| 21 | 22 | node.content = node.content |
| 23 | + node.parent.remove_attribute('data-highlight-only') | |
| 24 | + node.parent.remove_attribute('data-lang') | |
| 25 | + node.parent.remove_attribute('theme') | |
| 22 | 26 | end |
| 23 | 27 | end |
| 24 | 28 | |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Kotlin < UrlScraper |
| 3 | 3 | self.type = 'kotlin' |
| 4 | − self.release = '1.3.41' | |
| 4 | + self.release = '1.4.10' | |
| 5 | 5 | self.base_url = 'https://kotlinlang.org/' |
| 6 | 6 | self.root_path = 'api/latest/jvm/stdlib/index.html' |
| 7 | 7 | self.links = { |
| @@ -33,7 +33,7 @@ module Docs · 25 unmodified lines | ||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | options[:attribution] = <<-HTML |
| 36 | − © 2010–2019 JetBrains s.r.o.<br> | |
| 36 | + © 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors<br> | |
| 37 | 37 | Licensed under the Apache License, Version 2.0. |
| 38 | 38 | HTML |
| 39 | 39 | |