Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 99 KiB |
@ -0,0 +1,7 @@
|
||||
#= require views/pages/base
|
||||
|
||||
class app.views.SphinxSimplePage extends app.views.BasePage
|
||||
prepare: ->
|
||||
@highlightCode @findAll('pre.highlight-ruby'), 'ruby'
|
||||
@highlightCode @findAll('pre.highlight-javascript'), 'javascript'
|
||||
return
|
@ -1,4 +1,8 @@
|
||||
._chef {
|
||||
@extend %simple;
|
||||
|
||||
.note, .warning { @extend %note; }
|
||||
.warning { @extend %note, %note-red; }
|
||||
|
||||
code { @extend %label; }
|
||||
}
|
@ -1,27 +1,50 @@
|
||||
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.type = 'sphinx_simple'
|
||||
self.base_url = 'https://docs.chef.io/release/'
|
||||
self.links = {
|
||||
home: 'https://www.chef.io/',
|
||||
docs: 'https://docs.chef.io/'
|
||||
code: 'https://github.com/chef/chef'
|
||||
}
|
||||
|
||||
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[:skip_patterns] = [
|
||||
/\A[^\/]+\/\z/,
|
||||
/\A[^\/]+\/index\.html\z/,
|
||||
/\A[^\/]+\/release_notes\.html\z/,
|
||||
/\Aserver[^\/]+\/chef_overview\.html\z/ ]
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© 2015 Chef Software, Inc.<br>
|
||||
Creative Commons Attribution 3.0 Unported License.
|
||||
© Chef Software, Inc.<br>
|
||||
Licensed under the Creative Commons Attribution 3.0 Unported License.<br>
|
||||
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/service
|
||||
marks of Chef, in the United States and other countries and are used with Chef Inc's permission.<br>
|
||||
We are not affiliated with, endorsed or sponsored by Chef Inc.
|
||||
HTML
|
||||
|
||||
version '12' do
|
||||
self.release = '12.7'
|
||||
|
||||
options[:client_path] = client_path = '12-7'
|
||||
options[:server_path] = server_path = 'server_12-4'
|
||||
|
||||
self.root_path = "#{client_path}/chef_overview.html"
|
||||
self.initial_paths = ["#{server_path}/server_components.html"]
|
||||
|
||||
options[:only_patterns] = [/\A#{client_path}\//, /\A#{server_path}\//]
|
||||
end
|
||||
|
||||
version '11' do
|
||||
self.release = '11.18'
|
||||
|
||||
options[:client_path] = client_path = '11-18'
|
||||
options[:server_path] = server_path = 'server_12-4'
|
||||
|
||||
self.root_path = "#{client_path}/chef_overview.html"
|
||||
self.initial_paths = ["#{server_path}/server_components.html"]
|
||||
|
||||
options[:only_patterns] = [/\A#{client_path}\//, /\A#{server_path}\//]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@ -1 +1 @@
|
||||
http://style.chef.io/assets/images/downloads/Chef_Regular.png
|
||||
https://www.chef.io/
|