influxdata.rb 886 B

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Influxdata < UrlScraper
  3. self.name = 'InfluxData'
  4. self.type = 'influxdata'
  5. self.release = '0.10'
  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[:replace_paths] = {
  18. "influxdb/v#{release}/guides/clustering/" => 'influxdb/v0.10/clustering/'
  19. }
  20. options[:attribution] = <<-HTML
  21. &copy; 2015 InfluxData, Inc.<br>
  22. Licensed under the MIT license.
  23. HTML
  24. end
  25. end