History

Update HAProxy documentation (2.6.5)

Simon Legner committed 4 years ago

Commit d55d41b1 parent cf2c9922 files · +13 −8Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/haproxy.rb +12 −7
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -388,7 +388,7 @@ credits = [ · 387 unmodified lines
388388 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
389389 ], [
390390 'HAProxy',
391− '2021 Willy Tarreau, HAProxy contributors',
391+ '2022 Willy Tarreau, HAProxy contributors',
392392 'GPLv2',
393393 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'
394394 ], [
lib/docs/scrapers/haproxy.rb+12−7
@@ -16,18 +16,23 @@ module Docs · 15 unmodified lines
1616 options[:follow_links] = false
1717
1818 options[:attribution] = <<-HTML
19− &copy; 2021 Willy Tarreau, HAProxy contributors<br>
19+ &copy; 2022 Willy Tarreau, HAProxy contributors<br>
2020 Licensed under the GNU General Public License version 2.
2121 HTML
2222
23+ version '2.6' do
24+ self.release = '2.6.5'
25+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
26+ end
27+
2328 version '2.5' do
24− self.release = '2.5.0'
25− self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"
29+ self.release = '2.5.8'
30+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
2631 end
2732
2833 version '2.4' do
29− self.release = '2.4.0'
30− self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"
34+ self.release = '2.4.18'
35+ self.base_url = "https://docs.haproxy.org/#{self.version}/"
3136 end
3237
3338 version '2.3' do
@@ -66,8 +71,8 @@ module Docs · 32 unmodified lines
6671 end
6772
6873 def get_latest_version(opts)
69− doc = fetch_doc('http://www.haproxy.org', opts)
70− doc.at_css('table[cols=6]').css('tr')[1].at_css('td').content
74+ doc = fetch_doc('https://www.haproxy.org', opts)
75+ doc.at_css('table[cols=6]').at_css('tr:not(:first-child) > td:first-child:not(:contains("dev"))').content
7176 end
7277 end
7378 end