Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 127 KiB After Width: | Height: | Size: 130 KiB |
@ -1,20 +1,20 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class Twig < UrlScraper
|
class Twig < UrlScraper
|
||||||
self.type = 'twig'
|
self.type = 'sphinx'
|
||||||
|
self.release = '1.24'
|
||||||
|
self.base_url = 'http://twig.sensiolabs.org/doc/'
|
||||||
|
self.root_path = 'index.html'
|
||||||
|
self.initial_paths = %w(extensions/index.html)
|
||||||
|
|
||||||
options[:attribution] = <<-HTML
|
options[:attribution] = <<-HTML
|
||||||
© 2009–2016 by SensioLabs<br>
|
© 2009–2016 by the Twig Team<br>
|
||||||
Licensed under the three clause BSD license.
|
Licensed under the three clause BSD license.<br>
|
||||||
|
The Twig logo is © 2010–2016 SensioLabs
|
||||||
HTML
|
HTML
|
||||||
|
|
||||||
self.release = '1.24.1'
|
|
||||||
self.base_url = 'http://twig.sensiolabs.org/'
|
|
||||||
self.root_path = 'documentation'
|
|
||||||
|
|
||||||
html_filters.push 'twig/clean_html', 'twig/entries'
|
html_filters.push 'twig/clean_html', 'twig/entries'
|
||||||
|
|
||||||
options[:container] = 'div.bd > div.content'
|
options[:container] = 'div.bd > div.content'
|
||||||
options[:skip_patterns] = [/\Aapi/, /\Alicense/]
|
options[:skip] = %w(deprecated.html advanced_legacy.html)
|
||||||
options[:skip] = %w(doc/deprecated.html doc/advanced_legacy.html)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 838 B After Width: | Height: | Size: 772 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 2.4 KiB |