History

Update crystal documentation (0.25.0)

icyleaf committed 8 years ago

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

Showing the changes to lib/docs (3 of 3 files). Show all

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
16 end16 end
17 17
18 def api18 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
lib/docs/filters/crystal/entries.rb+1−1
@@ -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 else34 else
35 type = at_css('#types-list > ul > .current > a').content35 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')
lib/docs/scrapers/crystal.rb+2−2
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Crystal < UrlScraper2 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 HTML29 HTML
30 else30 else
31 <<-HTML31 <<-HTML
32 &copy; 2012&ndash;2017 Manas Technology Solutions.<br>32 &copy; 2012&ndash;2018 Manas Technology Solutions.<br>
33 Licensed under the Apache License, Version 2.0.33 Licensed under the Apache License, Version 2.0.
34 HTML34 HTML
35 end35 end