You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/graphite.rb

22 lines
682 B

module Docs
class Graphite < UrlScraper
self.type = 'graphite'
self.release = '1.1.4'
self.base_url = 'https://graphite.readthedocs.io/en/latest/'
self.links = {
code: 'https://github.com/graphite-project/graphite-web'
}
html_filters.push 'graphite/entries', 'graphite/clean_html'
options[:container] = '.document > div'
options[:skip] = %w(releases.html who-is-using.html composer.html search.html py-modindex.html genindex.html)
options[:attribution] = <<-HTML
&copy; 2008&ndash;2012 Chris Davis<br>
&copy; 2011&ndash;2016 The Graphite Project<br>
Licensed under the Apache License, Version 2.0.
HTML
end
end