mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
729 B
25 lines
729 B
module Docs
|
|
class Twig < UrlScraper
|
|
self.type = 'sphinx'
|
|
self.release = '1.29'
|
|
self.base_url = 'http://twig.sensiolabs.org/doc/'
|
|
self.root_path = 'index.html'
|
|
self.initial_paths = %w(extensions/index.html)
|
|
self.links = {
|
|
home: 'http://twig.sensiolabs.org/',
|
|
code: 'https://github.com/twigphp/Twig'
|
|
}
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2009–2016 by the Twig Team<br>
|
|
Licensed under the three clause BSD license.<br>
|
|
The Twig logo is © 2010–2016 SensioLabs
|
|
HTML
|
|
|
|
html_filters.push 'twig/clean_html', 'twig/entries'
|
|
|
|
options[:container] = 'div.bd > div.content'
|
|
options[:skip] = %w(deprecated.html advanced_legacy.html)
|
|
end
|
|
end
|