homebrew.rb 696 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Homebrew < UrlScraper
  3. self.name = 'Homebrew'
  4. self.type = 'simple'
  5. self.release = '1.4.2'
  6. self.base_url = 'https://docs.brew.sh/'
  7. self.links = {
  8. home: 'https://brew.sh',
  9. code: 'https://github.com/Homebrew/brew'
  10. }
  11. html_filters.push 'homebrew/entries', 'homebrew/clean_html'
  12. options[:container] = ->(filter) { filter.root_page? ? '#home' : '#page' }
  13. options[:skip_patterns] = [/maintainer/i, /core\-contributor/i]
  14. options[:skip] = %w(Kickstarter-Supporters.html)
  15. options[:attribution] = <<-HTML
  16. &copy; 2009&ndash;present Homebrew contributors<br>
  17. Licensed under the BSD 2-Clause License.
  18. HTML
  19. end
  20. end