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
388 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'388 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE'
389 ], [389 ], [
390 'HAProxy',390 'HAProxy',
391 '2021 Willy Tarreau, HAProxy contributors',391 '2022 Willy Tarreau, HAProxy contributors',
392 'GPLv2',392 'GPLv2',
393 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'393 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE'
394 ], [394 ], [
lib/docs/scrapers/haproxy.rb+12−7
@@ -16,18 +16,23 @@ module Docs · 15 unmodified lines
16 options[:follow_links] = false16 options[:follow_links] = false
17 17
18 options[:attribution] = <<-HTML18 options[:attribution] = <<-HTML
19 &copy; 2021 Willy Tarreau, HAProxy contributors<br>19 &copy; 2022 Willy Tarreau, HAProxy contributors<br>
20 Licensed under the GNU General Public License version 2.20 Licensed under the GNU General Public License version 2.
21 HTML21 HTML
22 22
23 version '2.6' do
24 self.release = '2.6.5'
25 self.base_url = "https://docs.haproxy.org/#{self.version}/"
26 end
27
23 version '2.5' do28 version '2.5' do
24 self.release = '2.5.0'29 self.release = '2.5.8'
25 self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"30 self.base_url = "https://docs.haproxy.org/#{self.version}/"
26 end31 end
27 32
28 version '2.4' do33 version '2.4' do
29 self.release = '2.4.0'34 self.release = '2.4.18'
30 self.base_url = "https://cbonte.github.io/haproxy-dconv/#{self.version}/"35 self.base_url = "https://docs.haproxy.org/#{self.version}/"
31 end36 end
32 37
33 version '2.3' do38 version '2.3' do
@@ -66,8 +71,8 @@ module Docs · 32 unmodified lines
66 end71 end
67 72
68 def get_latest_version(opts)73 def get_latest_version(opts)
69 doc = fetch_doc('http://www.haproxy.org', opts)74 doc = fetch_doc('https://www.haproxy.org', opts)
70 doc.at_css('table[cols=6]').css('tr')[1].at_css('td').content75 doc.at_css('table[cols=6]').at_css('tr:not(:first-child) > td:first-child:not(:contains("dev"))').content
71 end76 end
72 end77 end
73end78end