chai.rb 720 B

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