From 114da4de5164878a51e1f82af09a063e1915ea6e Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 25 Jun 2017 11:24:26 -0400 Subject: [PATCH] Update Symfony documentation (3.3.2, 3.2.9, 3.1.8, 3.0.1, 2.8.22, 2.7.29) --- .../javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/filters/symfony/clean_html.rb | 2 +- lib/docs/scrapers/symfony.rb | 13 +++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 625a8091..ededcdef 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -585,7 +585,7 @@ credits = [ 'https://raw.githubusercontent.com/statsmodels/statsmodels/master/LICENSE.txt' ], [ 'Symfony', - '2004-2016 Fabien Potencier', + '2004-2017 Fabien Potencier', 'MIT', 'https://symfony.com/doc/current/contributing/code/license.html' ], [ diff --git a/lib/docs/filters/symfony/clean_html.rb b/lib/docs/filters/symfony/clean_html.rb index 7926b9a7..97b8cd2e 100644 --- a/lib/docs/filters/symfony/clean_html.rb +++ b/lib/docs/filters/symfony/clean_html.rb @@ -20,7 +20,7 @@ module Docs node.before(node.children).remove end - css('h1 > a', '.content', 'h3 > code', 'h3 strong', 'abbr').each do |node| + css('h1 > a', '.content', 'h3 > code', 'h3 strong', 'abbr', 'div.method-item', 'div.method-description', 'div.tags').each do |node| node.before(node.children).remove end diff --git a/lib/docs/scrapers/symfony.rb b/lib/docs/scrapers/symfony.rb index e1d0b15f..f144a305 100644 --- a/lib/docs/scrapers/symfony.rb +++ b/lib/docs/scrapers/symfony.rb @@ -22,12 +22,17 @@ module Docs Symfony.html) options[:attribution] = <<-HTML - © 2004–2016 Fabien Potencier
+ © 2004–2017 Fabien Potencier
Licensed under the MIT License. HTML + version '3.3' do + self.release = '3.3.2' + self.base_url = "http://api.symfony.com/#{version}/" + end + version '3.2' do - self.release = '3.2.1' + self.release = '3.2.9' self.base_url = "http://api.symfony.com/#{version}/" end @@ -42,12 +47,12 @@ module Docs end version '2.8' do - self.release = '2.8.2' + self.release = '2.8.22' self.base_url = "http://api.symfony.com/#{version}/" end version '2.7' do - self.release = '2.7.9' + self.release = '2.7.29' self.base_url = "http://api.symfony.com/#{version}/" end end