We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cebf9fa + a836758 commit a49e13dCopy full SHA for a49e13d
lib/docs/scrapers/crystal.rb
@@ -2,7 +2,7 @@ module Docs
2
class Crystal < UrlScraper
3
include MultipleBaseUrls
4
self.type = 'crystal'
5
- self.release = '1.11.1'
+ self.release = '1.13.1'
6
self.base_urls = [
7
"https://crystal-lang.org/api/#{release}/",
8
"https://crystal-lang.org/reference/#{release[0..2]}/",
@@ -19,6 +19,12 @@ def initial_urls
19
20
html_filters.push 'crystal/entries', 'crystal/clean_html'
21
22
+ options[:skip_patterns] = [
23
+ %r{\ACrystal/System/},
24
+ %r{\AIO/Evented.html\z},
25
+ %r{\ARegex/PCRE2.html\z}
26
+ ]
27
+
28
options[:attribution] = ->(filter) {
29
if filter.current_url.path.start_with?('/reference/')
30
<<-HTML
0 commit comments