浏览代码

Merge branch 'main' into main

Simon Legner 1 年之前
父节点
当前提交
837c6e623f
共有 1 个文件被更改,包括 7 次插入1 次删除
  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