mocha.rb 599 B

12345678910111213141516171819202122
  1. module Docs
  2. class Mocha < UrlScraper
  3. self.type = 'mocha'
  4. self.release = '3.2.0'
  5. self.base_url = 'https://mochajs.org/'
  6. self.links = {
  7. home: 'https://mochajs.org/',
  8. code: 'https://github.com/mochajs/mocha'
  9. }
  10. html_filters.push 'mocha/clean_html', 'mocha/entries', 'title'
  11. options[:container] = '#content'
  12. options[:title] = 'mocha'
  13. options[:skip_links] = true
  14. options[:attribution] = <<-HTML
  15. &copy; 2016 JS Foundation and contributors<br>
  16. Licensed under the Creative Commons Attribution 4.0 International License.
  17. HTML
  18. end
  19. end