Update Twig documentation (2.1.0, 1.31.0)

pull/566/merge
Thibaut Courouble 8 years ago
parent 5ebdf2f998
commit a5a999d7d8

@ -566,7 +566,7 @@ credits = [
'https://creativecommons.org/licenses/by/3.0/' 'https://creativecommons.org/licenses/by/3.0/'
], [ ], [
'Twig', 'Twig',
'2009-2016 The Twig Team', '2009-2017 The Twig Team',
'BSD', 'BSD',
'http://twig.sensiolabs.org/license' 'http://twig.sensiolabs.org/license'
], [ ], [

@ -1,8 +1,6 @@
module Docs module Docs
class Twig < UrlScraper class Twig < UrlScraper
self.type = 'sphinx' self.type = 'sphinx'
self.release = '1.29'
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 = { self.links = {
@ -11,14 +9,24 @@ module Docs
} }
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2009&ndash;2016 by the Twig Team<br> &copy; 2009&ndash;2017 by the Twig Team<br>
Licensed under the three clause BSD license.<br> Licensed under the three clause BSD license.<br>
The Twig logo is &copy; 2010&ndash;2016 SensioLabs The Twig logo is &copy; 2010&ndash;2017 SensioLabs
HTML HTML
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] = %w(deprecated.html advanced_legacy.html) options[:skip] = %w(deprecated.html advanced_legacy.html)
version '2' do
self.release = '2.1.0'
self.base_url = 'http://twig.sensiolabs.org/doc/2.x/'
end
version '1' do
self.release = '1.31.0'
self.base_url = 'http://twig.sensiolabs.org/doc/1.x/'
end
end end
end end

Loading…
Cancel
Save