History

Update Chef documentation (17.9.18)

Simon Legner committed 4 years ago

Commit 193f2c21 parent b74f8921 file · +17 −2Browse files

Unified · Split

lib/docs/scrapers/chef.rb+17−2
@@ -20,6 +20,21 @@ module Docs · 19 unmodified lines
20 We are not affiliated with, endorsed or sponsored by Chef Inc.20 We are not affiliated with, endorsed or sponsored by Chef Inc.
21 HTML21 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 version '16' do38 version '16' do
24 self.release = '16.8.14'39 self.release = '16.8.14'
25 40
@@ -82,8 +97,8 @@ module Docs · 56 unmodified lines
82 end97 end
83 98
84 def get_latest_version(opts)99 def get_latest_version(opts)
85 doc = fetch_doc('https://downloads.chef.io/products/infra', opts)100 tags = get_github_tags('chef', 'chef', opts)
86 doc.at_css('#versions > option').content.strip101 tags[0]['name'][1..-1]
87 end102 end
88 103
89 end104 end