[devdocsgjs/main: 26/76] Update nginx documentation (1.22.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 26/76] Update nginx documentation (1.22.0)
- Date: Fri, 15 Jul 2022 21:39:45 +0000 (UTC)
commit 232896c010d8363366cbdeca6190633e86853674
Author: Simon Legner <Simon Legner gmail com>
Date: Wed May 25 20:55:25 2022 +0200
Update nginx documentation (1.22.0)
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/filters/nginx/entries.rb | 2 ++
lib/docs/scrapers/nginx.rb | 4 ++--
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index faf716a0..86cb9c7d 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -579,7 +579,7 @@ credits = [
'https://github.com/LearnBoost/mongoose/blob/master/README.md#license'
], [
'nginx',
- '2002-2021 Igor Sysoev<br>© 2011-2021 Nginx, Inc.',
+ '2002-2021 Igor Sysoev<br>© 2011-2022 Nginx, Inc.',
'BSD',
'http://nginx.org/LICENSE'
], [
diff --git a/lib/docs/filters/nginx/entries.rb b/lib/docs/filters/nginx/entries.rb
index 4f418b2b..7a43e3a4 100644
--- a/lib/docs/filters/nginx/entries.rb
+++ b/lib/docs/filters/nginx/entries.rb
@@ -21,6 +21,8 @@ module Docs
css('h1 + ul a').each_with_object [] do |node, entries|
name = node.content.strip
next if name =~ /\A[A-Z]/ || name.start_with?('/')
+ mod = get_name
+ name = "#{name} (#{mod})" unless mod.match?(/ngx_http/)
id = node['href'].remove('#')
next if id.blank?
diff --git a/lib/docs/scrapers/nginx.rb b/lib/docs/scrapers/nginx.rb
index e53781dc..b28c0e7a 100644
--- a/lib/docs/scrapers/nginx.rb
+++ b/lib/docs/scrapers/nginx.rb
@@ -2,7 +2,7 @@ module Docs
class Nginx < UrlScraper
self.name = 'nginx'
self.type = 'nginx'
- self.release = '1.21.0'
+ self.release = '1.22.0'
self.base_url = 'https://nginx.org/en/docs/'
self.links = {
home: 'https://nginx.org/',
@@ -23,7 +23,7 @@ module Docs
# http://nginx.org/LICENSE
options[:attribution] = <<-HTML
© 2002-2021 Igor Sysoev<br>
- © 2011-2021 Nginx, Inc.<br>
+ © 2011-2022 Nginx, Inc.<br>
Licensed under the BSD License.
HTML
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]