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