History

Update Crystal documentation (0.20.0)

Thibaut Courouble committed 9 years ago

Commit d05cc581 parent d87c0ba1 file · +2 −1Browse files

Unified · Split

lib/docs/scrapers/crystal.rb+2−1
@@ -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.19.2'4 self.release = '0.20.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)
@@ -13,6 +13,7 @@ module Docs · 5 unmodified lines
13 html_filters.push 'crystal/entries', 'crystal/clean_html'13 html_filters.push 'crystal/entries', 'crystal/clean_html'
14 14
15 options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]15 options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]
16 options[:skip_patterns] = [/debug/i]
16 17
17 options[:replace_paths] = {18 options[:replace_paths] = {
18 "api/#{release}/" => "api/#{release}/index.html",19 "api/#{release}/" => "api/#{release}/index.html",