devdocs/lib/docs/scrapers/opentsdb.rb
2019-06-20 21:40:15 +02:00

26 lines
724 B
Ruby

module Docs
class Opentsdb < UrlScraper
self.name = 'OpenTSDB'
self.type = 'sphinx_simple'
self.release = '2.3.0'
self.base_url = 'http://opentsdb.net/docs/build/html/'
self.root_path = 'index.html'
self.links = {
home: 'http://opentsdb.net/',
code: 'https://github.com/OpenTSDB/opentsdb'
}
html_filters.push 'opentsdb/entries', 'opentsdb/clean_html'
options[:skip] = %w(genindex.html search.html)
options[:attribution] = <<-HTML
&copy; 2010&ndash;2016 The OpenTSDB Authors<br>
Licensed under the GNU LGPLv2.1+ and GPLv3+ licenses.
HTML
def get_latest_version(opts)
get_latest_github_release('OpenTSDB', 'opentsdb', opts)
end
end
end