mirror of https://github.com/freeCodeCamp/devdocs
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.
22 lines
682 B
22 lines
682 B
module Docs
|
|
class Graphite < UrlScraper
|
|
self.type = 'graphite'
|
|
self.release = '1.1.3'
|
|
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
|
|
© 2008–2012 Chris Davis<br>
|
|
© 2011–2016 The Graphite Project<br>
|
|
Licensed under the Apache License, Version 2.0.
|
|
HTML
|
|
end
|
|
end
|