浏览代码

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