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
2020 We are not affiliated with, endorsed or sponsored by Chef Inc.
2121 HTML
2222
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+
2338 version '16' do
2439 self.release = '16.8.14'
2540
@@ -82,8 +97,8 @@ module Docs · 56 unmodified lines
8297 end
8398
8499 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]
87102 end
88103
89104 end