Showing the changes to lib/docs (3 of 3 files). Show all
Unified · Split
| @@ -9,7 +9,7 @@ module Docs · 8 unmodified lines | |||
| 9 | 9 | ||
| 10 | doc = @doc.at_css('article') | 10 | doc = @doc.at_css('article') |
| 11 | 11 | ||
| 12 | css('.article-footer', 'hr').remove | 12 | css('.article-footer', 'hr', 'br').remove |
| 13 | 13 | ||
| 14 | css('a.offset-anchor').each do |node| | 14 | css('a.offset-anchor').each do |node| |
| 15 | node.parent['id'] = node['id'] | 15 | node.parent['id'] = node['id'] |
| @@ -2,7 +2,9 @@ module Docs · 1 unmodified line | |||
| 2 | class Influxdata | 2 | class Influxdata |
| 3 | class EntriesFilter < Docs::EntriesFilter | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | def get_name | 4 | def get_name |
| 5 | at_css('.article-heading h1').content | 5 | name = at_css('.article-heading h1').content |
| 6 | name.remove! %r{\s\(.+\)} | ||
| 7 | name | ||
| 6 | end | 8 | end |
| 7 | 9 | ||
| 8 | def get_type | 10 | def get_type |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Influxdata < UrlScraper | 2 | class Influxdata < UrlScraper |
| 3 | self.name = 'InfluxData' | 3 | self.name = 'InfluxData' |
| 4 | self.type = 'influxdata' | 4 | self.type = 'influxdata' |
| 5 | self.release = '1.2' | 5 | self.release = '1.3' |
| 6 | self.base_url = 'https://docs.influxdata.com/' | 6 | self.base_url = 'https://docs.influxdata.com/' |
| 7 | self.links = { | 7 | self.links = { |
| 8 | home: 'https://www.influxdata.com/', | 8 | home: 'https://www.influxdata.com/', |
| @@ -17,6 +17,7 @@ module Docs · 8 unmodified lines | |||
| 17 | options[:title] = false | 17 | options[:title] = false |
| 18 | 18 | ||
| 19 | options[:only_patterns] = [/(telegraf|influxdb|chronograf|kapacitor)\/v#{release}/] | 19 | options[:only_patterns] = [/(telegraf|influxdb|chronograf|kapacitor)\/v#{release}/] |
| 20 | options[:skip_patterns] = [/enterprise/] | ||
| 20 | 21 | ||
| 21 | options[:skip] = [ | 22 | options[:skip] = [ |
| 22 | "influxdb/v#{release}/sample_data/data_download/", | 23 | "influxdb/v#{release}/sample_data/data_download/", |