|
|
@ -2,7 +2,7 @@ module Docs
|
|
|
|
class Influxdata < UrlScraper
|
|
|
|
class Influxdata < UrlScraper
|
|
|
|
self.name = 'InfluxData'
|
|
|
|
self.name = 'InfluxData'
|
|
|
|
self.type = 'influxdata'
|
|
|
|
self.type = 'influxdata'
|
|
|
|
self.release = '0.13'
|
|
|
|
self.release = '1.0'
|
|
|
|
self.base_url = 'https://docs.influxdata.com/'
|
|
|
|
self.base_url = 'https://docs.influxdata.com/'
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'influxdata/entries', 'influxdata/clean_html', 'title'
|
|
|
|
html_filters.push 'influxdata/entries', 'influxdata/clean_html', 'title'
|
|
|
@ -17,9 +17,15 @@ module Docs
|
|
|
|
options[:skip] = [
|
|
|
|
options[:skip] = [
|
|
|
|
"influxdb/v#{release}/sample_data/data_download/",
|
|
|
|
"influxdb/v#{release}/sample_data/data_download/",
|
|
|
|
"influxdb/v#{release}/tools/grafana/",
|
|
|
|
"influxdb/v#{release}/tools/grafana/",
|
|
|
|
"influxdb/v#{release}/about/"
|
|
|
|
"influxdb/v#{release}/about/",
|
|
|
|
|
|
|
|
"influxdb/v#{release}/external_resources/"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options[:fix_urls] = ->(url) do
|
|
|
|
|
|
|
|
url.sub! %r{/influxdb/v([\d\.]+)/.+/influxdb/v[\d\.]+/}, '/influxdb/v\1/'
|
|
|
|
|
|
|
|
url
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2015 InfluxData, Inc.<br>
|
|
|
|
© 2015 InfluxData, Inc.<br>
|
|
|
|
Licensed under the MIT license.
|
|
|
|
Licensed under the MIT license.
|
|
|
|