Add Chef documentation

Chef documentation from docs.chef.io
Should work so far. Haven't figured out with which command you generate
the iconset though. Added the logo from the official logo download
site (as stated in "SOURCE"). Also pinged a marketing person at chef
which didnt respond yet.
pull/282/head
doertedev 9 years ago
parent 51895e9889
commit 6f23afae32

@ -33,6 +33,7 @@
'pages/apache', 'pages/apache',
'pages/bower', 'pages/bower',
'pages/c', 'pages/c',
'pages/chef',
'pages/chai', 'pages/chai',
'pages/clojure', 'pages/clojure',
'pages/coffeescript', 'pages/coffeescript',

@ -34,6 +34,7 @@
'pages/bower', 'pages/bower',
'pages/c', 'pages/c',
'pages/chai', 'pages/chai',
'pages/chef',
'pages/clojure', 'pages/clojure',
'pages/coffeescript', 'pages/coffeescript',
'pages/d3', 'pages/d3',

@ -0,0 +1,4 @@
._chef {
@extend %simple;
}

@ -0,0 +1,10 @@
module Docs
class Chef
class CleanHtmlFilter < Filter
def call
css('h1 a', 'h2 a', 'h3 a','div.footer').remove
doc
end
end
end
end

@ -0,0 +1,10 @@
module Docs
class Chef
class EntriesFilter < Docs::EntriesFilter
def get_name
at_css('div.body h1 a').remove
at_css('div.body h1').content
end
end
end
end

@ -0,0 +1,27 @@
module Docs
class Chef < UrlScraper
self.name = 'Chef'
self.slug = 'chef'
self.type = 'chef'
self.version = '12.5'
self.base_url = 'https://docs.chef.io/'
self.links = {
home: 'https://www.chef.io/',
docs: 'https://docs.chef.io/'
}
html_filters.push 'chef/entries', 'chef/clean_html'
options[:container] = '.bodywrapper'
options[:only_patterns] = [/resource_.*.html/]
options[:skip_patterns] = [/resource_common\.html/]
options[:trailing_slash] = false
options[:attribution] = <<-HTML
&copy; 2015 Chef Software, Inc.<br>
Creative Commons Attribution 3.0 Unported License.
HTML
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -0,0 +1 @@
http://style.chef.io/assets/images/downloads/Chef_Regular.png
Loading…
Cancel
Save