mirror of https://github.com/freeCodeCamp/devdocs
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
parent
51895e9889
commit
6f23afae32
@ -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
|
||||||
|
© 2015 Chef Software, Inc.<br>
|
||||||
|
Creative Commons Attribution 3.0 Unported License.
|
||||||
|
HTML
|
||||||
|
end
|
||||||
|
end
|
After Width: | Height: | Size: 749 B |
After Width: | Height: | Size: 1.6 KiB |
@ -0,0 +1 @@
|
|||||||
|
http://style.chef.io/assets/images/downloads/Chef_Regular.png
|
Loading…
Reference in new issue