Browse Source

Update InfluxData documentation (1.3)

Thibaut Courouble 8 years ago
parent
commit
6caaa884a2

+ 1 - 1
lib/docs/filters/influxdata/clean_html.rb

@@ -9,7 +9,7 @@ module Docs
 
         doc = @doc.at_css('article')
 
-        css('.article-footer', 'hr').remove
+        css('.article-footer', 'hr', 'br').remove
 
         css('a.offset-anchor').each do |node|
           node.parent['id'] = node['id']

+ 3 - 1
lib/docs/filters/influxdata/entries.rb

@@ -2,7 +2,9 @@ module Docs
   class Influxdata
     class EntriesFilter < Docs::EntriesFilter
       def get_name
-        at_css('.article-heading h1').content
+        name = at_css('.article-heading h1').content
+        name.remove! %r{\s\(.+\)}
+        name
       end
 
       def get_type

+ 2 - 1
lib/docs/scrapers/influxdata.rb

@@ -2,7 +2,7 @@ module Docs
   class Influxdata < UrlScraper
     self.name = 'InfluxData'
     self.type = 'influxdata'
-    self.release = '1.2'
+    self.release = '1.3'
     self.base_url = 'https://docs.influxdata.com/'
     self.links = {
       home: 'https://www.influxdata.com/',
@@ -17,6 +17,7 @@ module Docs
     options[:title] = false
 
     options[:only_patterns] = [/(telegraf|influxdb|chronograf|kapacitor)\/v#{release}/]
+    options[:skip_patterns] = [/enterprise/]
 
     options[:skip] = [
       "influxdb/v#{release}/sample_data/data_download/",