influxdata.rb 767 B

12345678910111213141516171819202122232425262728
  1. module Docs
  2. class Influxdata < UrlScraper
  3. self.name = 'InfluxData'
  4. self.type = 'influxdata'
  5. self.release = '0.13'
  6. self.base_url = 'https://docs.influxdata.com/'
  7. html_filters.push 'influxdata/entries', 'influxdata/clean_html', 'title'
  8. options[:trailing_slash] = true
  9. options[:root_title] = 'InfluxData Documentation'
  10. options[:title] = false
  11. options[:only_patterns] = [/(telegraf|influxdb|chronograf|kapacitor)\/v#{release}/]
  12. options[:skip] = [
  13. "influxdb/v#{release}/sample_data/data_download/",
  14. "influxdb/v#{release}/tools/grafana/",
  15. "influxdb/v#{release}/about/"
  16. ]
  17. options[:attribution] = <<-HTML
  18. &copy; 2015 InfluxData, Inc.<br>
  19. Licensed under the MIT license.
  20. HTML
  21. end
  22. end