chai.rb 616 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Chai < UrlScraper
  3. self.name = 'Chai'
  4. self.type = 'chai'
  5. self.version = '1.9.1'
  6. self.base_url = 'http://chaijs.com'
  7. self.root_path = '/api/'
  8. self.initial_paths = %w(/guide/installation/)
  9. html_filters.push 'chai/entries', 'chai/clean_html'
  10. options[:container] = '#content'
  11. options[:trailing_slash] = true
  12. options[:only_patterns] = [/\A\/guide/, /\A\/api/]
  13. options[:skip] = %w(/api/test/ /guide/ /guide/resources/)
  14. options[:attribution] = <<-HTML
  15. &copy; 2011&ndash;2014 Jake Luer<br>
  16. Licensed under the MIT License.
  17. HTML
  18. end
  19. end