瀏覽代碼

Skip erroneous scraper results

TheWillGabriel 6 年之前
父節點
當前提交
2fe6705fa4
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      lib/docs/scrapers/rdoc/rails.rb

+ 9 - 0
lib/docs/scrapers/rdoc/rails.rb

@@ -45,6 +45,15 @@ module Docs
       ActiveSupport/Dependencies/WatchStack.html
       ActiveSupport/Notifications/Fanout.html)
 
+    # False positives found by docs:generate
+    options[:skip].concat %w(
+      ActionDispatch/www.example.com
+      ActionDispatch/Http/www.rubyonrails.org
+      ActionDispatch/Http/www.rubyonrails.co.uk
+      'TZ'
+      active_record_migrations.html
+      association_basics.html)
+
     options[:skip_patterns] += [
       /release_notes/,
       /\AActionController\/Testing/,