You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/salt_stack.rb

25 lines
597 B

module Docs
class SaltStack < UrlScraper
self.type = 'salt_stack'
self.release = '2018.3.2'
self.base_url = 'https://docs.saltstack.com/en/latest/ref/'
6 years ago
self.links = {
home: 'https://www.saltstack.com/',
code: 'https://github.com/saltstack/salt'
}
html_filters.push 'salt_stack/clean_html', 'salt_stack/entries'
options[:only_patterns] = [
%r{^[^/]+/all/}
]
options[:container] = '.body-content'
options[:attribution] = <<-HTML
&copy; 2018 SaltStack.<br>
Licensed under the Apache License, Version 2.0.
HTML
end
end