bower.rb 480 B

12345678910111213141516171819
  1. module Docs
  2. class Bower < UrlScraper
  3. self.name = 'Bower'
  4. self.type = 'bower'
  5. self.version = '1.3.12'
  6. self.base_url = 'http://bower.io/docs/'
  7. self.root_path = 'api'
  8. html_filters.push 'bower/clean_html', 'bower/entries'
  9. options[:trailing_slash] = false
  10. options[:skip] = %w(tools about)
  11. options[:attribution] = <<-HTML
  12. &copy; 2014 Bower contributors<br>
  13. Licensed under the Creative Commons Attribution License.
  14. HTML
  15. end
  16. end