Skip to content

Commit 21aca67

Browse files
committed
Deal with trailing slash and 'src' URLs
1 parent 6a8a80d commit 21aca67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/docs/scrapers/pony.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Pony < UrlScraper
66

77
html_filters.push 'pony/container', 'pony/clean_html', 'pony/entries'
88
options[:attribution] = "Me"
9-
options[:follow_links] = ->(filter) { filter.subpath !~ /src/ }
9+
options[:trailing_slash] = false
10+
options[:skip_patterns] = [/src/]
1011
end
1112
end

0 commit comments

Comments
 (0)