Unified · Split
| @@ -30,6 +30,10 @@ module Docs · 29 unmodified lines | |||
| 30 | node['data-language'] = 'nginx' | 30 | node['data-language'] = 'nginx' |
| 31 | end | 31 | end |
| 32 | 32 | ||
| 33 | css('code code').each do |node| | ||
| 34 | node.before(node.children).remove | ||
| 35 | end | ||
| 36 | |||
| 33 | doc | 37 | doc |
| 34 | end | 38 | end |
| 35 | end | 39 | end |
| @@ -20,7 +20,7 @@ module Docs · 19 unmodified lines | |||
| 20 | def additional_entries | 20 | def additional_entries |
| 21 | css('h1 + ul a').each_with_object [] do |node, entries| | 21 | css('h1 + ul a').each_with_object [] do |node, entries| |
| 22 | name = node.content.strip | 22 | name = node.content.strip |
| 23 | next if name =~ /\A[A-Z]/ | 23 | next if name =~ /\A[A-Z]/ || name.start_with?('/') |
| 24 | 24 | ||
| 25 | id = node['href'].remove('#') | 25 | id = node['href'].remove('#') |
| 26 | next if id.blank? | 26 | next if id.blank? |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Nginx < UrlScraper | 2 | class Nginx < UrlScraper |
| 3 | self.name = 'nginx' | 3 | self.name = 'nginx' |
| 4 | self.type = 'nginx' | 4 | self.type = 'nginx' |
| 5 | self.release = '1.13.4' | 5 | self.release = '1.13.6' |
| 6 | self.base_url = 'https://nginx.org/en/docs/' | 6 | self.base_url = 'https://nginx.org/en/docs/' |
| 7 | self.links = { | 7 | self.links = { |
| 8 | home: 'https://nginx.org/', | 8 | home: 'https://nginx.org/', |