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
1515 end
1616
1717 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"]')
1921 node.content = node.content
2022 end
2123 end
lib/docs/scrapers/kotlin.rb+1−1
@@ -1,7 +1,7 @@
11 module Docs
22 class Kotlin < UrlScraper
33 self.type = 'kotlin'
4− self.release = '1.0.3'
4+ self.release = '1.0.4'
55 self.base_url = 'https://kotlinlang.org/'
66 self.root_path = 'api/latest/jvm/stdlib/index.html'
77 self.links = {