[devdocsgjs/main: 535/1867] Deal with trailing slash and 'src' URLs
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 535/1867] Deal with trailing slash and 'src' URLs
- Date: Fri, 19 Nov 2021 23:47:16 +0000 (UTC)
commit 21aca67a5330088eff9768c962bee5b3344b20de
Author: Harm Aarts <harmaarts gmail com>
Date: Thu Dec 13 22:25:36 2018 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]