Преглед изворни кода

Deal with trailing slash and 'src' URLs

Harm Aarts пре 7 година
родитељ
комит
21aca67a53
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      lib/docs/scrapers/pony.rb

+ 2 - 1
lib/docs/scrapers/pony.rb

@@ -6,6 +6,7 @@ module Docs
 
     html_filters.push 'pony/container', 'pony/clean_html', 'pony/entries'
     options[:attribution] = "Me"
-    options[:follow_links] = ->(filter) { filter.subpath !~ /src/ }
+    options[:trailing_slash] = false
+    options[:skip_patterns] = [/src/]
   end
 end