Skip to content

Commit a5a999d

Browse files
committed
Update Twig documentation (2.1.0, 1.31.0)
1 parent 5ebdf2f commit a5a999d

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ credits = [
566566
'https://creativecommons.org/licenses/by/3.0/'
567567
], [
568568
'Twig',
569-
'2009-2016 The Twig Team',
569+
'2009-2017 The Twig Team',
570570
'BSD',
571571
'http://twig.sensiolabs.org/license'
572572
], [

lib/docs/scrapers/twig.rb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Docs
22
class Twig < UrlScraper
33
self.type = 'sphinx'
4-
self.release = '1.29'
5-
self.base_url = 'http://twig.sensiolabs.org/doc/'
64
self.root_path = 'index.html'
75
self.initial_paths = %w(extensions/index.html)
86
self.links = {
@@ -11,14 +9,24 @@ class Twig < UrlScraper
119
}
1210

1311
options[:attribution] = <<-HTML
14-
&copy; 2009&ndash;2016 by the Twig Team<br>
12+
&copy; 2009&ndash;2017 by the Twig Team<br>
1513
Licensed under the three clause BSD license.<br>
16-
The Twig logo is &copy; 2010&ndash;2016 SensioLabs
14+
The Twig logo is &copy; 2010&ndash;2017 SensioLabs
1715
HTML
1816

1917
html_filters.push 'twig/clean_html', 'twig/entries'
2018

2119
options[:container] = 'div.bd > div.content'
2220
options[:skip] = %w(deprecated.html advanced_legacy.html)
21+
22+
version '2' do
23+
self.release = '2.1.0'
24+
self.base_url = 'http://twig.sensiolabs.org/doc/2.x/'
25+
end
26+
27+
version '1' do
28+
self.release = '1.31.0'
29+
self.base_url = 'http://twig.sensiolabs.org/doc/1.x/'
30+
end
2331
end
2432
end

0 commit comments

Comments
 (0)