From 21aca67a5330088eff9768c962bee5b3344b20de Mon Sep 17 00:00:00 2001 From: Harm Aarts Date: Thu, 13 Dec 2018 22:25:36 +0100 Subject: [PATCH] Deal with trailing slash and 'src' URLs --- lib/docs/scrapers/pony.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/docs/scrapers/pony.rb b/lib/docs/scrapers/pony.rb index a9cbd6c3..0201ed18 100644 --- a/lib/docs/scrapers/pony.rb +++ b/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