|
|
@ -1,10 +1,14 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Twig < UrlScraper
|
|
|
|
class Twig < UrlScraper
|
|
|
|
self.type = 'sphinx'
|
|
|
|
self.type = 'sphinx'
|
|
|
|
self.release = '1.24'
|
|
|
|
self.release = '1.29'
|
|
|
|
self.base_url = 'http://twig.sensiolabs.org/doc/'
|
|
|
|
self.base_url = 'http://twig.sensiolabs.org/doc/'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.initial_paths = %w(extensions/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
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2009–2016 by the Twig Team<br>
|
|
|
|
© 2009–2016 by the Twig Team<br>
|
|
|
|