@@ -16,8 +16,11 @@ module Docs
end
def get_type
- type, _ = slug.split('/', 2)
- type
+ slug.split('/', 2).first
+ end
+
+ def include_default_entry?
+ slug.split('/').last.start_with? 'salt'
@@ -11,7 +11,7 @@ module Docs
html_filters.push 'salt_stack/clean_html', 'salt_stack/entries'
options[:only_patterns] = [
- %r{[^/]+/all/}
+ %r{^[^/]+/all/}
]
options[:container] = '.body-content'