Unified · Split
| @@ -16,7 +16,7 @@ module Docs · 15 unmodified lines | |||
| 16 | end | 16 | end |
| 17 | 17 | ||
| 18 | def api | 18 | def api |
| 19 | @doc = at_css('#main-content') | 19 | @doc = at_css('.main-content') |
| 20 | 20 | ||
| 21 | at_css('h1 + p').remove if root_page? | 21 | at_css('h1 + p').remove if root_page? |
| 22 | 22 | ||
| @@ -32,7 +32,7 @@ module Docs · 31 unmodified lines | |||
| 32 | if hierarchy && hierarchy.content.include?('Exception') | 32 | if hierarchy && hierarchy.content.include?('Exception') |
| 33 | 'Exceptions' | 33 | 'Exceptions' |
| 34 | else | 34 | else |
| 35 | type = at_css('#types-list > ul > .current > a').content | 35 | type = at_css('.types-list > ul > .current > a').content |
| 36 | type = 'Float' if type.start_with?('Float') | 36 | type = 'Float' if type.start_with?('Float') |
| 37 | type = 'Int' if type.start_with?('Int') | 37 | type = 'Int' if type.start_with?('Int') |
| 38 | type = 'UInt' if type.start_with?('UInt') | 38 | type = 'UInt' if type.start_with?('UInt') |
| @@ -1,7 +1,7 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Crystal < UrlScraper | 2 | class Crystal < UrlScraper |
| 3 | self.type = 'crystal' | 3 | self.type = 'crystal' |
| 4 | self.release = '0.24.1' | 4 | self.release = '0.25.0' |
| 5 | self.base_url = 'https://crystal-lang.org/' | 5 | self.base_url = 'https://crystal-lang.org/' |
| 6 | self.root_path = "api/#{release}/index.html" | 6 | self.root_path = "api/#{release}/index.html" |
| 7 | self.initial_paths = %w(docs/index.html) | 7 | self.initial_paths = %w(docs/index.html) |
| @@ -29,7 +29,7 @@ module Docs · 21 unmodified lines | |||
| 29 | HTML | 29 | HTML |
| 30 | else | 30 | else |
| 31 | <<-HTML | 31 | <<-HTML |
| 32 | © 2012–2017 Manas Technology Solutions.<br> | 32 | © 2012–2018 Manas Technology Solutions.<br> |
| 33 | Licensed under the Apache License, Version 2.0. | 33 | Licensed under the Apache License, Version 2.0. |
| 34 | HTML | 34 | HTML |
| 35 | end | 35 | end |