mocha.rb 573 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Mocha < UrlScraper
  3. self.name = 'mocha'
  4. self.type = 'mocha'
  5. self.version = '2.2.1'
  6. self.base_url = 'http://mochajs.org/'
  7. self.links = {
  8. home: 'http://mochajs.org/',
  9. code: 'https://github.com/mochajs/mocha'
  10. }
  11. html_filters.push 'mocha/entries', 'mocha/clean_html', 'title'
  12. options[:container] = '#content'
  13. options[:title] = 'mocha'
  14. options[:skip_links] = true
  15. options[:attribution] = <<-HTML
  16. &copy; 2011&ndash;2015 TJ Holowaychuk<br>
  17. Licensed under the MIT License.
  18. HTML
  19. end
  20. end