bower.rb 558 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Bower < UrlScraper
  3. self.name = 'Bower'
  4. self.type = 'bower'
  5. self.release = '1.8.4'
  6. self.base_url = 'https://bower.io/docs/'
  7. self.root_path = 'api'
  8. self.links = {
  9. home: 'https://bower.io/',
  10. code: 'https://github.com/bower/bower'
  11. }
  12. html_filters.push 'bower/clean_html', 'bower/entries'
  13. options[:trailing_slash] = false
  14. options[:skip] = %w(tools about)
  15. options[:attribution] = <<-HTML
  16. &copy; 2018 Bower contributors<br>
  17. Licensed under the MIT License.
  18. HTML
  19. end
  20. end