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