graphite.rb 653 B

1234567891011121314151617181920
  1. module Docs
  2. class Graphite < UrlScraper
  3. self.type = 'graphite'
  4. self.release = '1.1.3'
  5. self.base_url = 'http://graphite.readthedocs.io/en/latest/'
  6. self.links = {
  7. code: 'https://github.com/graphite-project/graphite-web'
  8. }
  9. html_filters.push 'graphite/clean_html', 'graphite/entries'
  10. options[:container] = '.document > div'
  11. options[:skip] = %w(releases.html who-is-using.html composer.html search.html py-modindex.html genindex.html)
  12. options[:attribution] = <<-HTML
  13. &copy; 2008-2012 Chris Davis; 2011-2016 The Graphite Project<br>
  14. Licensed under the Apache License, Version 2.0.
  15. HTML
  16. end
  17. end