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.
33 lines
886 B
33 lines
886 B
9 years ago
|
module Docs
|
||
|
class Influxdata < UrlScraper
|
||
|
self.name = 'InfluxData'
|
||
|
self.type = 'influxdata'
|
||
|
self.release = '0.10'
|
||
|
self.base_url = 'https://docs.influxdata.com/'
|
||
|
|
||
|
html_filters.push 'influxdata/entries', 'influxdata/clean_html', 'title'
|
||
|
|
||
|
options[:trailing_slash] = true
|
||
|
|
||
|
options[:root_title] = 'InfluxData Documentation'
|
||
|
options[:title] = false
|
||
|
|
||
|
options[:only_patterns] = [/(telegraf|influxdb|chronograf|kapacitor)\/v#{release}/]
|
||
|
|
||
|
options[:skip] = [
|
||
|
"influxdb/v#{release}/sample_data/data_download/",
|
||
|
"influxdb/v#{release}/tools/grafana/",
|
||
|
"influxdb/v#{release}/about/"
|
||
|
]
|
||
|
|
||
|
options[:replace_paths] = {
|
||
|
"influxdb/v#{release}/guides/clustering/" => 'influxdb/v0.10/clustering/'
|
||
|
}
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2015 InfluxData, Inc.<br>
|
||
|
Licensed under the MIT license.
|
||
|
HTML
|
||
|
end
|
||
|
end
|