mirror of https://github.com/freeCodeCamp/devdocs
parent
6239ead36b
commit
265f162aec
@ -1,7 +0,0 @@
|
||||
#= 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,28 +0,0 @@
|
||||
module Docs
|
||||
class Chefclient < UrlScraper
|
||||
self.name = 'Chef Client'
|
||||
self.slug = 'chefclient'
|
||||
self.type = 'chefclient'
|
||||
self.version = '12.5'
|
||||
self.base_url = "https://docs.chef.io/release/#{version.sub '.', '-'}/"
|
||||
self.links = {
|
||||
home: 'https://www.chef.io/',
|
||||
docs: 'https://docs.chef.io/'
|
||||
}
|
||||
|
||||
html_filters.push 'chefclient/entries', 'chefclient/clean_html'
|
||||
|
||||
options[:fix_urls] = ->(url) do
|
||||
url.remove! %r{/release/[0-9\-+]/}
|
||||
url
|
||||
end
|
||||
|
||||
options[:skip_patterns] = [/_images\//]
|
||||
options[:trailing_slash] = false
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© 2015 Chef Software, Inc.<br>
|
||||
Creative Commons Attribution 3.0 Unported License.
|
||||
HTML
|
||||
end
|
||||
end
|
Loading…
Reference in new issue