Unified · Split
| @@ -388,7 +388,7 @@ credits = [ · 387 unmodified lines | ||
| 388 | 388 | 'https://raw.githubusercontent.com/wycats/handlebars.js/master/LICENSE' |
| 389 | 389 | ], [ |
| 390 | 390 | 'HAProxy', |
| 391 | − '2021 Willy Tarreau, HAProxy contributors', | |
| 391 | + '2022 Willy Tarreau, HAProxy contributors', | |
| 392 | 392 | 'GPLv2', |
| 393 | 393 | 'https://raw.githubusercontent.com/haproxy/haproxy/master/LICENSE' |
| 394 | 394 | ], [ |
| @@ -16,18 +16,23 @@ module Docs · 15 unmodified lines | ||
| 16 | 16 | options[:follow_links] = false |
| 17 | 17 | |
| 18 | 18 | options[:attribution] = <<-HTML |
| 19 | − © 2021 Willy Tarreau, HAProxy contributors<br> | |
| 19 | + © 2022 Willy Tarreau, HAProxy contributors<br> | |
| 20 | 20 | Licensed under the GNU General Public License version 2. |
| 21 | 21 | 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 | 28 | 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}/" | |
| 26 | 31 | end |
| 27 | 32 | |
| 28 | 33 | 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}/" | |
| 31 | 36 | end |
| 32 | 37 | |
| 33 | 38 | version '2.3' do |
| @@ -66,8 +71,8 @@ module Docs · 32 unmodified lines | ||
| 66 | 71 | end |
| 67 | 72 | |
| 68 | 73 | 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 | |
| 71 | 76 | end |
| 72 | 77 | end |
| 73 | 78 | end |