Prechádzať zdrojové kódy

Version Symfony documentation (2.7, 2.8 and 3.0)

Ref #25.
Thibaut Courouble 10 rokov pred
rodič
commit
71431967aa

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -381,7 +381,7 @@ credits = [
     'https://raw.githubusercontent.com/Automattic/socket.io/master/LICENSE'
   ], [
     'Symfony',
-    '2004-2015 Fabien Potencier',
+    '2004-2016 Fabien Potencier',
     'MIT',
     'http://symfony.com/doc/current/contributing/code/license.html'
   ], [

+ 16 - 3
lib/docs/scrapers/symfony.rb

@@ -3,8 +3,6 @@ module Docs
     self.name = 'Symfony'
     self.slug = 'symfony'
     self.type = 'laravel'
-    self.release = '2.7'
-    self.base_url = "http://api.symfony.com/#{release}/"
     self.root_path = 'namespaces.html'
     self.initial_paths = %w(classes.html)
     self.links = {
@@ -24,8 +22,23 @@ module Docs
       Symfony.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2004&ndash;2015 Fabien Potencier<br>
+      &copy; 2004&ndash;2016 Fabien Potencier<br>
       Licensed under the MIT License.
     HTML
+
+    version '3.0' do
+      self.release = '3.0.1'
+      self.base_url = "http://api.symfony.com/#{version}/"
+    end
+
+    version '2.8' do
+      self.release = '2.8.2'
+      self.base_url = "http://api.symfony.com/#{version}/"
+    end
+
+    version '2.7' do
+      self.release = '2.7.9'
+      self.base_url = "http://api.symfony.com/#{version}/"
+    end
   end
 end