1
0

jq.rb 590 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Jq < UrlScraper
  3. self.name = 'jq'
  4. self.slug = 'jq'
  5. self.type = 'simple'
  6. self.release = '1.6'
  7. self.links = {
  8. home: 'https://stedolan.github.io/jq/'
  9. }
  10. self.base_url = "https://stedolan.github.io/jq/manual/v#{self.release}/index.html"
  11. html_filters.push 'jq/entries', 'jq/clean_html'
  12. options[:skip_links] = true
  13. options[:attribution] = <<-HTML
  14. &copy; 2012 Stephen Dolan<br>
  15. Licensed under the <a href="https://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 license</a>
  16. HTML
  17. end
  18. end