Update crystal documentation (0.25.0)

pull/822/merge
icyleaf 7 years ago committed by Thibaut Courouble
parent 8be51a5b36
commit 0950168660

@ -16,7 +16,7 @@ module Docs
end end
def api def api
@doc = at_css('#main-content') @doc = at_css('.main-content')
at_css('h1 + p').remove if root_page? at_css('h1 + p').remove if root_page?

@ -32,7 +32,7 @@ module Docs
if hierarchy && hierarchy.content.include?('Exception') if hierarchy && hierarchy.content.include?('Exception')
'Exceptions' 'Exceptions'
else else
type = at_css('#types-list > ul > .current > a').content type = at_css('.types-list > ul > .current > a').content
type = 'Float' if type.start_with?('Float') type = 'Float' if type.start_with?('Float')
type = 'Int' if type.start_with?('Int') type = 'Int' if type.start_with?('Int')
type = 'UInt' if type.start_with?('UInt') type = 'UInt' if type.start_with?('UInt')

@ -1,7 +1,7 @@
module Docs module Docs
class Crystal < UrlScraper class Crystal < UrlScraper
self.type = 'crystal' self.type = 'crystal'
self.release = '0.24.1' self.release = '0.25.0'
self.base_url = 'https://crystal-lang.org/' self.base_url = 'https://crystal-lang.org/'
self.root_path = "api/#{release}/index.html" self.root_path = "api/#{release}/index.html"
self.initial_paths = %w(docs/index.html) self.initial_paths = %w(docs/index.html)
@ -29,7 +29,7 @@ module Docs
HTML HTML
else else
<<-HTML <<-HTML
&copy; 2012&ndash;2017 Manas Technology Solutions.<br> &copy; 2012&ndash;2018 Manas Technology Solutions.<br>
Licensed under the Apache License, Version 2.0. Licensed under the Apache License, Version 2.0.
HTML HTML
end end

Loading…
Cancel
Save