Procházet zdrojové kódy

Ignore non-existing paths

A bug in crystals doc generation causes the docs to contain links to
non-documented and therefore non-existing types.
Jon Börjesson před 1 rokem
rodič
revize
a836758a3c
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      lib/docs/scrapers/crystal.rb

+ 6 - 0
lib/docs/scrapers/crystal.rb

@@ -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