mirror of https://github.com/freeCodeCamp/devdocs
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.
28 lines
775 B
28 lines
775 B
module Docs
|
|
class Homebrew < UrlScraper
|
|
self.name = 'Homebrew'
|
|
self.type = 'simple'
|
|
self.release = '3.5.10'
|
|
self.base_url = 'https://docs.brew.sh/'
|
|
self.links = {
|
|
home: 'https://brew.sh',
|
|
code: 'https://github.com/Homebrew/brew'
|
|
}
|
|
|
|
html_filters.push 'homebrew/entries', 'homebrew/clean_html'
|
|
|
|
options[:container] = ->(filter) { filter.root_page? ? '#home' : '#page' }
|
|
|
|
options[:skip_patterns] = [/maintainer/i, /core\-contributor/i, /kickstarter/i, /governance/i]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2009–present Homebrew contributors<br>
|
|
Licensed under the BSD 2-Clause License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('Homebrew', 'brew', opts)
|
|
end
|
|
end
|
|
end
|