Bläddra i källkod

Update Cordova scraper

Thibaut 10 år sedan
förälder
incheckning
69d0a28f98

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

@@ -112,7 +112,7 @@ credits = [
     'https://raw.github.com/jashkenas/coffee-script/master/LICENSE'
   ], [
     'Cordova',
-    '2012-2014 The Apache Software Foundation',
+    '2012-2015 The Apache Software Foundation',
     'Apache',
     'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE'
   ], [

+ 4 - 1
lib/docs/scrapers/cordova.rb

@@ -3,8 +3,11 @@ module Docs
     self.name = 'Cordova'
     self.type = 'cordova'
     self.version = '5.0.0'
-    self.base_url = 'http://cordova.apache.org/docs/en/5.0.0/'
+    self.base_url = "http://cordova.apache.org/docs/en/#{version}/"
     self.root_path = 'index.html'
+    self.links = {
+      home: 'http://cordova.apache.org/'
+    }
 
     html_filters.push 'cordova/clean_html', 'cordova/entries', 'title'