Update crystal 0.35
Unified · Split
| @@ -208,7 +208,7 @@ credits = [ · 207 unmodified lines | |||
| 208 | 'https://creativecommons.org/licenses/by-sa/2.5/' | 208 | 'https://creativecommons.org/licenses/by-sa/2.5/' |
| 209 | ], [ | 209 | ], [ |
| 210 | 'Crystal', | 210 | 'Crystal', |
| 211 | '2012-2019 Manas Technology Solutions', | 211 | '2012-2020 Manas Technology Solutions', |
| 212 | 'Apache', | 212 | 'Apache', |
| 213 | 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE' | 213 | 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE' |
| 214 | ], [ | 214 | ], [ |
| @@ -14,7 +14,7 @@ module Docs · 13 unmodified lines | |||
| 14 | 14 | ||
| 15 | name | 15 | name |
| 16 | else | 16 | else |
| 17 | name = at_css('h1').children.last.content.strip | 17 | name = at_css('.type-name').children.last.content.strip |
| 18 | name.remove! %r{\(.*\)} | 18 | name.remove! %r{\(.*\)} |
| 19 | name | 19 | name |
| 20 | end | 20 | end |
| @@ -19,27 +19,14 @@ module Docs · 18 unmodified lines | |||
| 19 | HTML | 19 | HTML |
| 20 | else | 20 | else |
| 21 | <<-HTML | 21 | <<-HTML |
| 22 | © 2012–2019 Manas Technology Solutions.<br> | 22 | © 2012–2020 Manas Technology Solutions.<br> |
| 23 | Licensed under the Apache License, Version 2.0. | 23 | Licensed under the Apache License, Version 2.0. |
| 24 | HTML | 24 | HTML |
| 25 | end | 25 | end |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | version '0.31' do | 28 | version do |
| 29 | self.release = '0.31.1' | 29 | self.release = '0.35.1' |
| 30 | self.root_path = "api/#{release}/index.html" | ||
| 31 | |||
| 32 | options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//] | ||
| 33 | options[:skip_patterns] = [/debug/i] | ||
| 34 | |||
| 35 | options[:replace_paths] = { | ||
| 36 | "api/#{release}/" => "api/#{release}/index.html", | ||
| 37 | 'docs/' => 'docs/index.html' | ||
| 38 | } | ||
| 39 | end | ||
| 40 | |||
| 41 | version '0.30' do | ||
| 42 | self.release = '0.30.1' | ||
| 43 | self.root_path = "api/#{release}/index.html" | 30 | self.root_path = "api/#{release}/index.html" |
| 44 | 31 | ||
| 45 | options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//] | 32 | options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//] |