Browse Source

Merge branch 'main' into main

Simon Legner 1 year ago
parent
commit
837c6e623f
1 changed files with 7 additions and 1 deletions
  1. 7 1
      lib/docs/scrapers/crystal.rb

+ 7 - 1
lib/docs/scrapers/crystal.rb

@@ -2,7 +2,7 @@ module Docs
   class Crystal < UrlScraper
     include MultipleBaseUrls
     self.type = 'crystal'
-    self.release = '1.11.1'
+    self.release = '1.13.1'
     self.base_urls = [
       "https://crystal-lang.org/api/#{release}/",
       "https://crystal-lang.org/reference/#{release[0..2]}/",
@@ -19,6 +19,12 @@ module Docs
 
     html_filters.push 'crystal/entries', 'crystal/clean_html'
 
+    options[:skip_patterns] = [
+      %r{\ACrystal/System/},
+      %r{\AIO/Evented.html\z},
+      %r{\ARegex/PCRE2.html\z}
+    ]
+
     options[:attribution] = ->(filter) {
       if filter.current_url.path.start_with?('/reference/')
         <<-HTML