Unified · Split
| @@ -42,6 +42,7 @@ module Docs · 41 unmodified lines | |||
| 42 | parent.name = 'pre' | 42 | parent.name = 'pre' |
| 43 | parent.inner_html = node.inner_html.gsub('<br>', "\n").strip | 43 | parent.inner_html = node.inner_html.gsub('<br>', "\n").strip |
| 44 | parent.content = parent.content | 44 | parent.content = parent.content |
| 45 | parent['data-language'] = 'kotlin' | ||
| 45 | end | 46 | end |
| 46 | end | 47 | end |
| 47 | end | 48 | end |
| @@ -1,7 +1,7 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Kotlin < UrlScraper | 2 | class Kotlin < UrlScraper |
| 3 | self.type = 'kotlin' | 3 | self.type = 'kotlin' |
| 4 | self.release = '1.0.2' | 4 | self.release = '1.0.3' |
| 5 | self.base_url = 'https://kotlinlang.org/' | 5 | self.base_url = 'https://kotlinlang.org/' |
| 6 | self.root_path = 'api/latest/jvm/stdlib/index.html' | 6 | self.root_path = 'api/latest/jvm/stdlib/index.html' |
| 7 | self.links = { | 7 | self.links = { |