Browse Source

Version lodash documentation (3 and 4)

Ref #25.
Thibaut Courouble 10 years ago
parent
commit
d99a2c97ce
2 changed files with 12 additions and 4 deletions
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 11 3
      lib/docs/scrapers/lodash.rb

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

@@ -216,7 +216,7 @@ credits = [
     'http://creativecommons.org/licenses/by/3.0/'
   ], [
     'Lo-Dash',
-    '2012-2015 The Dojo Foundation',
+    '2012-2016 The Dojo Foundation',
     'MIT',
     'https://raw.github.com/lodash/lodash/master/LICENSE.txt'
   ], [

+ 11 - 3
lib/docs/scrapers/lodash.rb

@@ -3,8 +3,6 @@ module Docs
     self.name = 'lodash'
     self.slug = 'lodash'
     self.type = 'lodash'
-    self.release = '3.10.0'
-    self.base_url = 'https://lodash.com/docs'
     self.links = {
       home: 'https://lodash.com/',
       code: 'https://github.com/lodash/lodash/'
@@ -16,8 +14,18 @@ module Docs
     options[:skip_links] = true
 
     options[:attribution] = <<-HTML
-      &copy; 2012&ndash;2015 The Dojo Foundation<br>
+      &copy; 2012&ndash;2016 The Dojo Foundation<br>
       Licensed under the MIT License.
     HTML
+
+    version '4' do
+      self.release = '4.0.0'
+      self.base_url = 'https://lodash.com/docs'
+    end
+
+    version '3' do
+      self.release = '3.10.0'
+      self.base_url = 'https://lodash.com/docs' # OUT-OF-DATE
+    end
   end
 end