Skip to content

Commit 63b3ef9

Browse files
author
Boris Bera
committed
Remove the index pages for refs
1 parent 5502339 commit 63b3ef9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

lib/docs/filters/salt_stack/entries.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ def get_name
1616
end
1717

1818
def get_type
19-
type, _ = slug.split('/', 2)
20-
type
19+
slug.split('/', 2).first
20+
end
21+
22+
def include_default_entry?
23+
slug.split('/').last.start_with? 'salt'
2124
end
2225
end
2326
end

lib/docs/scrapers/salt_stack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SaltStack < UrlScraper
1111
html_filters.push 'salt_stack/clean_html', 'salt_stack/entries'
1212

1313
options[:only_patterns] = [
14-
%r{[^/]+/all/}
14+
%r{^[^/]+/all/}
1515
]
1616

1717
options[:container] = '.body-content'

0 commit comments

Comments
 (0)