Unified · Split
| @@ -20,6 +20,21 @@ module Docs · 19 unmodified lines | ||
| 20 | 20 | We are not affiliated with, endorsed or sponsored by Chef Inc. |
| 21 | 21 | HTML |
| 22 | 22 | |
| 23 | + version '17' do | |
| 24 | + self.release = '17.9.18' | |
| 25 | + | |
| 26 | + options[:container] = '.off-canvas-wrapper' | |
| 27 | + | |
| 28 | + options[:skip] = [ | |
| 29 | + '/automate/api/', | |
| 30 | + '/habitat/supervisor_api/', | |
| 31 | + '/habitat/builder_api/' | |
| 32 | + ] | |
| 33 | + | |
| 34 | + html_filters.push 'chef/entries', 'chef/clean_html' | |
| 35 | + | |
| 36 | + end | |
| 37 | + | |
| 23 | 38 | version '16' do |
| 24 | 39 | self.release = '16.8.14' |
| 25 | 40 | |
| @@ -82,8 +97,8 @@ module Docs · 56 unmodified lines | ||
| 82 | 97 | end |
| 83 | 98 | |
| 84 | 99 | def get_latest_version(opts) |
| 85 | − doc = fetch_doc('https://downloads.chef.io/products/infra', opts) | |
| 86 | − doc.at_css('#versions > option').content.strip | |
| 100 | + tags = get_github_tags('chef', 'chef', opts) | |
| 101 | + tags[0]['name'][1..-1] | |
| 87 | 102 | end |
| 88 | 103 | |
| 89 | 104 | end |