History

Update Kotlin documentation (1.0.4)

Thibaut Courouble committed 9 years ago

Commit 5d364581 parent 38b55132 files · +4 −2Browse files

Showing the changes to lib/docs (2 of 2 files). Show all

Unified · Split

2 files
  1. lib/docs/filters/kotlin/clean_html.rb +3 −1
  2. lib/docs/scrapers/kotlin.rb +1 −1
lib/docs/filters/kotlin/clean_html.rb+3−1
@@ -15,7 +15,9 @@ module Docs · 14 unmodified lines
15 end15 end
16 16
17 css('pre').each do |node|17 css('pre').each do |node|
18 node['data-language'] = node.at_css('code')['class'][/lang_(\w+)/, 1] if node.at_css('code')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"]')
19 node.content = node.content21 node.content = node.content
20 end22 end
21 end23 end
lib/docs/scrapers/kotlin.rb+1−1
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Kotlin < UrlScraper2 class Kotlin < UrlScraper
3 self.type = 'kotlin'3 self.type = 'kotlin'
4 self.release = '1.0.3'4 self.release = '1.0.4'
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 = {