qunit.rb 715 B

1234567891011121314151617181920212223242526272829303132
  1. # frozen_string_literal: true
  2. module Docs
  3. class Qunit < UrlScraper
  4. self.name = 'QUnit'
  5. self.type = 'qunit'
  6. self.release = '2.19.3'
  7. self.base_url = 'https://api.qunitjs.com/'
  8. self.root_path = '/'
  9. self.links = {
  10. home: 'https://qunitjs.com/',
  11. code: 'https://github.com/qunitjs/qunit'
  12. }
  13. html_filters.push 'qunit/entries', 'qunit/clean_html'
  14. options[:trailing_slash] = false
  15. options[:container] = '.main'
  16. options[:skip_patterns] = [
  17. /deprecated/,
  18. /^QUnit$/,
  19. /^assert$/,
  20. /^callbacks$/,
  21. /^async$/,
  22. /^config$/,
  23. /^extension$/,
  24. ]
  25. options[:attribution] = 'Copyright OpenJS Foundation and contributors.'
  26. end
  27. end