Update nginx documentation (1.22.0)

pull/1757/head
Simon Legner 3 years ago
parent 93d6b90136
commit 232896c010

@ -579,7 +579,7 @@ credits = [
'https://github.com/LearnBoost/mongoose/blob/master/README.md#license' 'https://github.com/LearnBoost/mongoose/blob/master/README.md#license'
], [ ], [
'nginx', 'nginx',
'2002-2021 Igor Sysoev<br>&copy; 2011-2021 Nginx, Inc.', '2002-2021 Igor Sysoev<br>&copy; 2011-2022 Nginx, Inc.',
'BSD', 'BSD',
'http://nginx.org/LICENSE' 'http://nginx.org/LICENSE'
], [ ], [

@ -21,6 +21,8 @@ module Docs
css('h1 + ul a').each_with_object [] do |node, entries| css('h1 + ul a').each_with_object [] do |node, entries|
name = node.content.strip name = node.content.strip
next if name =~ /\A[A-Z]/ || name.start_with?('/') next if name =~ /\A[A-Z]/ || name.start_with?('/')
mod = get_name
name = "#{name} (#{mod})" unless mod.match?(/ngx_http/)
id = node['href'].remove('#') id = node['href'].remove('#')
next if id.blank? next if id.blank?

@ -2,7 +2,7 @@ module Docs
class Nginx < UrlScraper class Nginx < UrlScraper
self.name = 'nginx' self.name = 'nginx'
self.type = 'nginx' self.type = 'nginx'
self.release = '1.21.0' self.release = '1.22.0'
self.base_url = 'https://nginx.org/en/docs/' self.base_url = 'https://nginx.org/en/docs/'
self.links = { self.links = {
home: 'https://nginx.org/', home: 'https://nginx.org/',
@ -23,7 +23,7 @@ module Docs
# http://nginx.org/LICENSE # http://nginx.org/LICENSE
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2002-2021 Igor Sysoev<br> &copy; 2002-2021 Igor Sysoev<br>
&copy; 2011-2021 Nginx, Inc.<br> &copy; 2011-2022 Nginx, Inc.<br>
Licensed under the BSD License. Licensed under the BSD License.
HTML HTML

Loading…
Cancel
Save