History

Update crystal documentation (0.25.0)

icyleaf committed 8 years ago

Commit 09501681 parent 8be51a53 files · +4 −4Browse files

Unified · Split

3 files
  1. lib/docs/filters/crystal/clean_html.rb +1 −1
  2. lib/docs/filters/crystal/entries.rb +1 −1
  3. lib/docs/scrapers/crystal.rb +2 −2
lib/docs/filters/crystal/clean_html.rb+1−1
@@ -16,7 +16,7 @@ module Docs · 15 unmodified lines
1616 end
1717
1818 def api
19− @doc = at_css('#main-content')
19+ @doc = at_css('.main-content')
2020
2121 at_css('h1 + p').remove if root_page?
2222
lib/docs/filters/crystal/entries.rb+1−1
@@ -32,7 +32,7 @@ module Docs · 31 unmodified lines
3232 if hierarchy && hierarchy.content.include?('Exception')
3333 'Exceptions'
3434 else
35− type = at_css('#types-list > ul > .current > a').content
35+ type = at_css('.types-list > ul > .current > a').content
3636 type = 'Float' if type.start_with?('Float')
3737 type = 'Int' if type.start_with?('Int')
3838 type = 'UInt' if type.start_with?('UInt')
lib/docs/scrapers/crystal.rb+2−2
@@ -1,7 +1,7 @@
11 module Docs
22 class Crystal < UrlScraper
33 self.type = 'crystal'
4− self.release = '0.24.1'
4+ self.release = '0.25.0'
55 self.base_url = 'https://crystal-lang.org/'
66 self.root_path = "api/#{release}/index.html"
77 self.initial_paths = %w(docs/index.html)
@@ -29,7 +29,7 @@ module Docs · 21 unmodified lines
2929 HTML
3030 else
3131 <<-HTML
32− &copy; 2012&ndash;2017 Manas Technology Solutions.<br>
32+ &copy; 2012&ndash;2018 Manas Technology Solutions.<br>
3333 Licensed under the Apache License, Version 2.0.
3434 HTML
3535 end